aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/workarounds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/workarounds.cpp b/engines/sci/engine/workarounds.cpp
index b33457606e..c5d85b8c5b 100644
--- a/engines/sci/engine/workarounds.cpp
+++ b/engines/sci/engine/workarounds.cpp
@@ -804,9 +804,9 @@ SciWorkaroundSolution trackOriginAndFindWorkaround(int index, const SciWorkaroun
&& workaround->methodName == g_sci->getSciLanguageString(curMethodName, K_LANG_ENGLISH)
&& ((workaround->index == -1) || (workaround->index == index))) {
// Workaround found
- if ((workaround->localCallSignature) || (curLocalCallOffset != -1)) {
+ if ((workaround->localCallSignature) || (curLocalCallOffset >= 0)) {
// local call signature found and/or subcall was made
- if ((workaround->localCallSignature) && (lastCall->debugLocalCallOffset)) {
+ if ((workaround->localCallSignature) && (curLocalCallOffset >= 0)) {
// local call signature found and subcall was made -> check signature accordingly
if (!curScriptPtr) {
// get script data