aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorOliver Kiehl2004-11-14 13:15:26 +0000
committerOliver Kiehl2004-11-14 13:15:26 +0000
commit61efd5ff0ea65b9e2f2d5f0ea956cc4755809bb8 (patch)
tree77d51be6780e27dac29dab51c9ea2a96ae2da9b3 /saga
parent2fb46f1b9569e2b8442f8d5414a888dc9e1ac0b0 (diff)
downloadscummvm-rg350-61efd5ff0ea65b9e2f2d5f0ea956cc4755809bb8.tar.gz
scummvm-rg350-61efd5ff0ea65b9e2f2d5f0ea956cc4755809bb8.tar.bz2
scummvm-rg350-61efd5ff0ea65b9e2f2d5f0ea956cc4755809bb8.zip
Fix stub a bit. Might garble rest of script otherwise.
svn-id: r15806
Diffstat (limited to 'saga')
-rw-r--r--saga/sthread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/saga/sthread.cpp b/saga/sthread.cpp
index 05f9cdc736..cd9b3d722f 100644
--- a/saga/sthread.cpp
+++ b/saga/sthread.cpp
@@ -787,7 +787,7 @@ int Script::SThreadRun(SCRIPT_THREAD *thread, int instr_limit) {
SDataWord_T param3 = 0;
param1 = scriptS.readByte();
param2 = scriptS.readByte();
- if (param2 > 0) {
+ if (param2 & 1) {
param3 = scriptS.readUint16LE();
}
debug(2, "DLGO | %02X %02X %04X", param1, param2, param3);