diff options
Diffstat (limited to 'engines/director/lingo/lingo-codegen.cpp')
-rw-r--r-- | engines/director/lingo/lingo-codegen.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-codegen.cpp b/engines/director/lingo/lingo-codegen.cpp index 1d72aec36b..b30bf03cde 100644 --- a/engines/director/lingo/lingo-codegen.cpp +++ b/engines/director/lingo/lingo-codegen.cpp @@ -272,6 +272,15 @@ int Lingo::codeConst(int val) { return res; } +int Lingo::codeArray(int arraySize) { + int res = g_lingo->code1(g_lingo->c_arraypush); + inst i = 0; + WRITE_UINT32(&i, arraySize); + g_lingo->code1(i); + + return res; +} + void Lingo::codeArg(Common::String *s) { _argstack.push_back(s); } |