diff options
Diffstat (limited to 'engines/director/lingo/lingo-lex.l')
-rw-r--r-- | engines/director/lingo/lingo-lex.l | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l index 56703160e5..9532da4fcb 100644 --- a/engines/director/lingo/lingo-lex.l +++ b/engines/director/lingo/lingo-lex.l @@ -169,11 +169,9 @@ whitespace [\t ] count(); yylval.s = new Common::String(yytext); - if (g_lingo->_builtins.contains(yytext)) { - if (g_lingo->_builtins[yytext]->nargs == -1) + if (g_lingo->_handlers.contains(yytext)) { + if (g_lingo->_handlers[yytext]->type == BLTIN && g_lingo->_handlers[yytext]->nargs == -1) return BLTINNOARGS; - else - return BLTIN; } return ID; |