diff options
author | Eugene Sandulenko | 2016-06-21 18:45:26 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | db8e68c6b68373a0e8de4c5641485814d8777e82 (patch) | |
tree | 3a83ff50992c240b47d2ee2b96073c1c5079e478 | |
parent | 46d60a794170489f4db8fdd3be5f8ee373b397ec (diff) | |
download | scummvm-rg350-db8e68c6b68373a0e8de4c5641485814d8777e82.tar.gz scummvm-rg350-db8e68c6b68373a0e8de4c5641485814d8777e82.tar.bz2 scummvm-rg350-db8e68c6b68373a0e8de4c5641485814d8777e82.zip |
DIRECTOR: Lingo: Fix code generation
-rw-r--r-- | engines/director/lingo/lingo.h | 4 |
1 files 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) { |