From 48a6bb4daab97fb36eae82ba15ed9dcc17372490 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 24 Dec 2019 01:23:14 +0100 Subject: DIRECTOR: LINGO: Force end line at the scripts --- engines/director/lingo/lingo-preprocessor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/director') 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()); -- cgit v1.2.3