aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director/lingo/lingo-codegen.cpp')
-rw-r--r--engines/director/lingo/lingo-codegen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-codegen.cpp b/engines/director/lingo/lingo-codegen.cpp
index 2847c45403..10589b1257 100644
--- a/engines/director/lingo/lingo-codegen.cpp
+++ b/engines/director/lingo/lingo-codegen.cpp
@@ -222,9 +222,9 @@ void Lingo::codeLabel(int label) {
_labelstack.push_back(label);
}
-void Lingo::processIf(int endlabel) {
+void Lingo::processIf(int elselabel, int endlabel) {
inst ielse1, iend;
- int else1 = endlabel;
+ int else1 = elselabel;
WRITE_UINT32(&iend, endlabel);