diff options
Diffstat (limited to 'engines/director/lingo/lingo-lex.l')
-rw-r--r-- | engines/director/lingo/lingo-lex.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l index 99cc21225a..93b57a079a 100644 --- a/engines/director/lingo/lingo-lex.l +++ b/engines/director/lingo/lingo-lex.l @@ -303,14 +303,14 @@ whitespace [\t ] else if (g_lingo->_builtins[yytext]->maxArgs == 1) return BLTINNOARGSORONE; else - return BLTINARGLIST; + return type == BLTIN ? BLTINARGLIST : FBLTINARGLIST; } else if (g_lingo->_builtins[yytext]->nargs == 1 && g_lingo->_builtins[yytext]->maxArgs == 1) { return type == BLTIN ? BLTINONEARG : FBLTINONEARG; } else if (g_lingo->_builtins[yytext]->nargs == -1) { - return BLTINARGLIST; + return type == BLTIN ? BLTINARGLIST : FBLTINARGLIST; } else { - return BLTINARGLIST; + return type == BLTIN ? BLTINARGLIST : FBLTINARGLIST; } } } |