diff options
Diffstat (limited to 'engines/director/lingo/lingo-gr.y')
-rw-r--r-- | engines/director/lingo/lingo-gr.y | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/engines/director/lingo/lingo-gr.y b/engines/director/lingo/lingo-gr.y index 6df71f9ea7..cfed29a6d3 100644 --- a/engines/director/lingo/lingo-gr.y +++ b/engines/director/lingo/lingo-gr.y @@ -351,14 +351,9 @@ expr: INT { | STRING { $$ = g_lingo->code1(g_lingo->c_stringpush); g_lingo->codeString($1->c_str()); } - | BLTIN '(' arglist ')' { - if ($3 != g_lingo->_builtins[*$1]->nargs) - error("Built-in function %s expects %d arguments but got %d", $1->c_str(), g_lingo->_builtins[*$1]->nargs, $3); - - $$ = g_lingo->code1(g_lingo->_builtins[*$1]->func); - delete $1; } | BLTINNOARGS { - $$ = g_lingo->code1(g_lingo->_builtins[*$1]->func); + $$ = g_lingo->code1(g_lingo->_handlers[*$1]->u.func); + $$ = g_lingo->code2(g_lingo->c_constpush, 0); // Put dummy value delete $1; } | ID '(' arglist ')' { $$ = g_lingo->code1(g_lingo->c_call); |