Skip to content

Commit

Permalink
DIRECTOR: LINGO: Implement clearGlobals Lingo command
Browse files Browse the repository at this point in the history
  • Loading branch information
r41k0u committed Jun 15, 2022
1 parent 271f2ae commit db42a88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/director/lingo/lingo-builtins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1655,9 +1655,9 @@ void LB::b_alert(int nargs) {
}

void LB::b_clearGlobals(int nargs) {
g_lingo->printSTUBWithArglist("b_clearGlobals", nargs);

g_lingo->dropStack(nargs);
for (auto it = g_lingo->_globalvars.begin(); it != g_lingo->_globalvars.end(); it++) {
it->_value = Datum();
}
}

void LB::b_cursor(int nargs) {
Expand Down

0 comments on commit db42a88

Please sign in to comment.