aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2017-01-11 19:07:37 +0100
committerEugene Sandulenko2017-01-11 19:27:19 +0100
commit8eb8f9b0ef79b47fc8e149d5b86034bf99e2c9ce (patch)
tree583c32f2865d9809110e044e341a0a7b92d12e47
parent895e02e1f61feb3cd7e9f73bc5a5de0fb7b139f2 (diff)
downloadscummvm-rg350-8eb8f9b0ef79b47fc8e149d5b86034bf99e2c9ce.tar.gz
scummvm-rg350-8eb8f9b0ef79b47fc8e149d5b86034bf99e2c9ce.tar.bz2
scummvm-rg350-8eb8f9b0ef79b47fc8e149d5b86034bf99e2c9ce.zip
DIRECTOR: Lingo: Fixed argument count for factory methods
-rw-r--r--engines/director/lingo/lingo-codegen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-codegen.cpp b/engines/director/lingo/lingo-codegen.cpp
index 71d7d3fa1e..335dad2c39 100644
--- a/engines/director/lingo/lingo-codegen.cpp
+++ b/engines/director/lingo/lingo-codegen.cpp
@@ -227,6 +227,7 @@ void Lingo::define(Common::String &name, int start, int nargs, Common::String *p
sym->u.defn = new ScriptData(&(*_currentScript)[start], end - start + 1);
sym->nargs = nargs;
+ sym->maxArgs = nargs;
}
int Lingo::codeString(const char *str) {