[Scummvm-git-logs] scummvm master -> 5232b848775debf88b896c5590beecb3b91bda3d

alxpnv a04198622 at gmail.com
Tue Jun 1 08:36:30 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5232b84877 ASYLUM: disable used keywords in dialogs


Commit: 5232b848775debf88b896c5590beecb3b91bda3d
    https://github.com/scummvm/scummvm/commit/5232b848775debf88b896c5590beecb3b91bda3d
Author: alxpnv (alxpnv22 at yahoo.com)
Date: 2021-06-01T11:38:38+03:00

Commit Message:
ASYLUM: disable used keywords in dialogs

Changed paths:
    engines/asylum/resources/encounters.cpp


diff --git a/engines/asylum/resources/encounters.cpp b/engines/asylum/resources/encounters.cpp
index a263dad1da..fb7f88d96b 100644
--- a/engines/asylum/resources/encounters.cpp
+++ b/engines/asylum/resources/encounters.cpp
@@ -614,7 +614,7 @@ void Encounter::choose(int32 index) {
 		_value1 = (_item->keywords[index] & KEYWORD_MASK);
 		setVariable(1, _value1);
 
-		if (strcmp("Goodbye", getText()->get(MAKE_RESOURCE(kResourcePackText, 3681 + index))))
+		if (strcmp("Goodbye", getText()->get(MAKE_RESOURCE(kResourcePackText, 3681 + _value1))))
 			if (_index != 79)
 				BYTE1(_item->keywords[index]) |= kKeywordOptionsDisabled;
 




More information about the Scummvm-git-logs mailing list