diff options
Diffstat (limited to 'saga/sthread.cpp')
-rw-r--r-- | saga/sthread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/saga/sthread.cpp b/saga/sthread.cpp index 5816c6c49f..19d7c02a6e 100644 --- a/saga/sthread.cpp +++ b/saga/sthread.cpp @@ -266,8 +266,10 @@ bool Script::runThread(ScriptThread *thread, uint instructionLimit) { thread->push((*addr) & iparam1 ? 1 : 0); break; CASEOP(opGetInt) - addr = thread->baseAddress(scriptS.readByte()); + iparam2 = scriptS.readByte(); + addr = thread->baseAddress(iparam2); iparam1 = scriptS.readSint16LE(); + debug(0, "%d %d %d", *((uint16*)addr), iparam2, iparam1); addr += iparam1; thread->push(*((uint16*)addr)); debug(8, "0x%X", *((uint16*)addr)); |