aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v8.cpp')
-rw-r--r--scumm/script_v8.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp
index 1a0903e64b..e6d6e6d24f 100644
--- a/scumm/script_v8.cpp
+++ b/scumm/script_v8.cpp
@@ -631,7 +631,8 @@ void Scumm_v8::o8_mod() {
}
void Scumm_v8::o8_wait() {
- int actnum, offs;
+ int actnum;
+ int offs = -2;
Actor *a;
byte subOp = fetchScriptByte();
@@ -684,7 +685,7 @@ void Scumm_v8::o8_wait() {
error("o8_wait: default case 0x%x", subOp);
}
- _scriptPointer -= 2;
+ _scriptPointer += offs;
o6_breakHere();
}