From 09014d5b96b625f7691bbda3ded24dfa386863d5 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 21 Apr 2015 14:42:55 +0200 Subject: SCI: fix bug in new workaround sig code --- engines/sci/engine/workarounds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci') 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 -- cgit v1.2.3