aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2015-12-24 18:01:12 +0100
committerEugene Sandulenko2015-12-27 15:41:01 +0100
commit370c1932f608085c94cb37be15487ccdfc0163da (patch)
tree1428b30a593144bacd776a71ec9a16da3245d258 /engines
parent9dc5a516609422a8fddee7898815e0ac26477d08 (diff)
downloadscummvm-rg350-370c1932f608085c94cb37be15487ccdfc0163da.tar.gz
scummvm-rg350-370c1932f608085c94cb37be15487ccdfc0163da.tar.bz2
scummvm-rg350-370c1932f608085c94cb37be15487ccdfc0163da.zip
WAGE: Fix bug with skipping nested IF's
Diffstat (limited to 'engines')
-rw-r--r--engines/wage/script.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp
index f03b364c4d..547a850f45 100644
--- a/engines/wage/script.cpp
+++ b/engines/wage/script.cpp
@@ -489,10 +489,8 @@ void Script::skipBlock() {
nesting++;
skipIf();
} else if (op == 0x88 || op == 0x87) { // END or EXIT
- _data->seek(-1, SEEK_CUR); // We need to reread it higher
nesting--;
if (nesting == 0) {
- _data->readByte(); // skiping
return;
}
} else switch (op) {