mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
DIRECTOR: Lingo: Fix calling built-ins with variable number of parameters
This commit is contained in:
parent
9dff05e51b
commit
0fe0b15d95
@ -762,7 +762,7 @@ void Lingo::c_call() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (sym->nargs < nargs) {
|
||||
if (sym->nargs != -1 && sym->nargs < nargs) {
|
||||
warning("Incorrect number of arguments for function %s. Dropping extra %d", name.c_str(), nargs - sym->nargs);
|
||||
for (int i = 0; i < nargs - sym->nargs; i++)
|
||||
g_lingo->pop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user