From 370c1932f608085c94cb37be15487ccdfc0163da Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 24 Dec 2015 18:01:12 +0100 Subject: [PATCH] WAGE: Fix bug with skipping nested IF's --- engines/wage/script.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index f03b364c4db0..547a850f45f9 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) {