aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-04 22:58:21 +0200
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commiteb4ef6db565307d36fdcec52b66afceeb8c2a917 (patch)
treeacb4c3a7c3ea6150dcf00a54aa6e227d993cc200
parent2dba6126b72cfcc1643e7623e6f558a41931bf37 (diff)
downloadscummvm-rg350-eb4ef6db565307d36fdcec52b66afceeb8c2a917.tar.gz
scummvm-rg350-eb4ef6db565307d36fdcec52b66afceeb8c2a917.tar.bz2
scummvm-rg350-eb4ef6db565307d36fdcec52b66afceeb8c2a917.zip
DIRECTOR: Lingo: Fix if() generation
-rw-r--r--engines/director/lingo/lingo-codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-codegen.cpp b/engines/director/lingo/lingo-codegen.cpp
index 47f723f44c..2847c45403 100644
--- a/engines/director/lingo/lingo-codegen.cpp
+++ b/engines/director/lingo/lingo-codegen.cpp
@@ -238,7 +238,7 @@ void Lingo::processIf(int endlabel) {
_labelstack.pop_back();
// This is beginning of our if()
- if (label)
+ if (!label)
break;
WRITE_UINT32(&ielse1, else1);