Skip to content
Permalink
Browse files

DIRECTOR: LINGO: Implemented c_arraypush()

  • Loading branch information
sev- committed Feb 9, 2020
1 parent cf10118 commit e4cbde1e9e68798364a2f84392504151bb305423
Showing with 3 additions and 4 deletions.
  1. +3 −4 engines/director/lingo/lingo-code.cpp
@@ -295,13 +295,12 @@ void LC::c_arraypush() {
Datum d;
int arraySize = g_lingo->readInt();

warning("STUB: c_arraypush()");
d.type = ARRAY;
d.u.farr = new DatumArray;

for (int i = 0; i < arraySize; i++)
g_lingo->pop();
d.u.farr->push_back(g_lingo->pop());

d.u.i = arraySize;
d.type = INT;
g_lingo->push(d);
}

0 comments on commit e4cbde1

Please sign in to comment.
You can’t perform that action at this time.