From db8e68c6b68373a0e8de4c5641485814d8777e82 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 21 Jun 2016 18:45:26 +0200 Subject: DIRECTOR: Lingo: Fix code generation --- engines/director/lingo/lingo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h index 4cf5b9972d..f167e28720 100644 --- a/engines/director/lingo/lingo.h +++ b/engines/director/lingo/lingo.h @@ -108,8 +108,8 @@ public: void processEvent(LEvent event, int entityId); int code1(inst code) { _currentScript->push_back(code); return _currentScript->size() - 1; } - int code2(inst code_1, inst code_2) { code1(code_1); return code1(code_2); } - int code3(inst code_1, inst code_2, inst code_3) { code1(code_1); code1(code_2); return code1(code_3); } + int code2(inst code_1, inst code_2) { int o = code1(code_1); code1(code_2); return o; } + int code3(inst code_1, inst code_2, inst code_3) { int o = code1(code_1); code1(code_2); code1(code_3); return o; } int codeString(const char *s); int calcStringAlignment(const char *s) { -- cgit v1.2.3