From b0cd2a9016f21a95a27afbde7515541761aa60d0 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 7 Feb 2017 10:55:02 +0100 Subject: DIRECTOR: Lingo: Fix lexer for built-ins detection --- engines/director/lingo/lingo-lex.l | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/director/lingo/lingo-lex.l') diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l index 5b93a46fc5..a4134b81c0 100644 --- a/engines/director/lingo/lingo-lex.l +++ b/engines/director/lingo/lingo-lex.l @@ -274,16 +274,16 @@ whitespace [\t ] if (g_lingo->_builtins[yytext]->maxArgs == 0) return type == BLTIN ? BLTINNOARGS : FBLTINNOARGS; else if (g_lingo->_builtins[yytext]->maxArgs == 1) - return type == BLTINNOARGSORONE; + return BLTINNOARGSORONE; else - return type == BLTINARGLIST; + return BLTINARGLIST; } 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 type == BLTINARGLIST; + return BLTINARGLIST; } else { - return type == BLTINARGLIST; + return BLTINARGLIST; } } } -- cgit v1.2.3