aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director')
-rw-r--r--engines/director/lingo/lingo-preprocessor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-preprocessor.cpp b/engines/director/lingo/lingo-preprocessor.cpp
index bd85b8b048..8d4f74fdea 100644
--- a/engines/director/lingo/lingo-preprocessor.cpp
+++ b/engines/director/lingo/lingo-preprocessor.cpp
@@ -273,6 +273,8 @@ Common::String Lingo::codePreprocessor(const char *s, bool simple) {
res += "\nend if";
}
+ // Make the parser happier when there is no newline at the end
+ res += '\n';
debugC(2, kDebugLingoParse, "#############\n%s\n#############", res.c_str());