aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/lingo/lingo-preprocessor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-preprocessor.cpp b/engines/director/lingo/lingo-preprocessor.cpp
index fd9cab91ff..5e63f306b6 100644
--- a/engines/director/lingo/lingo-preprocessor.cpp
+++ b/engines/director/lingo/lingo-preprocessor.cpp
@@ -83,7 +83,8 @@ Common::String Lingo::codePreprocessor(const char *s, bool simple) {
else if (*s)
res += *s;
- s++;
+ if (*s)
+ s++;
}
Common::String tmp(res);