diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 347b97a42e..02c7060e5b 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -506,7 +506,8 @@ Common::String Lingo::preprocessReturn(Common::String in) { next = nexttok(ptr + 6); // end of 'return' - if (prev.equals("&") || prev.equals("&&") || next.equals("&") || next.equals("&&")) { + if (prev.equals("&") || prev.equals("&&") || prev.equals("=") || + next.equals("&") || next.equals("&&")) { res += "scummvm_"; // Turn it into scummvm_return } @@ -516,6 +517,9 @@ Common::String Lingo::preprocessReturn(Common::String in) { res += Common::String(beg); + if (in.size() != res.size()) + debugC(2, kDebugLingoParse, "RETURN: in: %s\nout: %s", in.c_str(), res.c_str()); + return res; } |