From eb4ef6db565307d36fdcec52b66afceeb8c2a917 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 4 Jul 2016 22:58:21 +0200 Subject: DIRECTOR: Lingo: Fix if() generation --- engines/director/lingo/lingo-codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/director') 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); -- cgit v1.2.3