aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-01 01:06:06 +0100
committerEugene Sandulenko2019-12-01 01:06:33 +0100
commitf80947183c16e4be5f651f0ba2202446faf1ba8b (patch)
tree3ae37f9151e992e460935beac5843d0466a2a296
parent058fa35d6fa3b36b801750e2a128fdd9b766379a (diff)
downloadscummvm-rg350-f80947183c16e4be5f651f0ba2202446faf1ba8b.tar.gz
scummvm-rg350-f80947183c16e4be5f651f0ba2202446faf1ba8b.tar.bz2
scummvm-rg350-f80947183c16e4be5f651f0ba2202446faf1ba8b.zip
DIRECTOR: LINGO: Make sure we stop after last 'on' definition
-rw-r--r--engines/director/lingo/lingo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index 365b67c38d..b9236d8627 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -199,6 +199,8 @@ void Lingo::addCode(const char *code, ScriptType type, uint16 id) {
debugC(1, kDebugLingoCompile, "Code chunk:\n#####\n%s\n#####", begin);
parse(begin);
+
+ code1(STOP);
} else {
parse(code);