Skip to content

Commit

Permalink
WAGE: Fix bug with skipping nested IF's
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 27, 2015
1 parent 9dc5a51 commit 370c193
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions engines/wage/script.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 370c193

Please sign in to comment.