aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-11 00:29:51 +0200
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commitffdb3f9d0f8f05b1735f7b447485d2d126c05c09 (patch)
tree0e9b2d14519b5a9cb04d49ff00a27772e4d69889 /engines/director/lingo
parentd86b95b3070bad2e99a2a1130fc0687d8f3fe426 (diff)
downloadscummvm-rg350-ffdb3f9d0f8f05b1735f7b447485d2d126c05c09.tar.gz
scummvm-rg350-ffdb3f9d0f8f05b1735f7b447485d2d126c05c09.tar.bz2
scummvm-rg350-ffdb3f9d0f8f05b1735f7b447485d2d126c05c09.zip
DIRECTOR: Lingo: Fix if() statement code generation
Diffstat (limited to 'engines/director/lingo')
-rw-r--r--engines/director/lingo/lingo-gr.cpp7
-rw-r--r--engines/director/lingo/lingo-gr.y2
2 files changed, 7 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp
index ff46cb4e4e..e04aacd979 100644
--- a/engines/director/lingo/lingo-gr.cpp
+++ b/engines/director/lingo/lingo-gr.cpp
@@ -1948,6 +1948,11 @@ yyreduce:
{ g_lingo->code1(STOP); (yyval.code) = g_lingo->_currentScript->size(); ;}
break;
+ case 46:
+#line 296 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = g_lingo->_currentScript->size(); ;}
+ break;
+
case 49:
#line 301 "engines/director/lingo/lingo-gr.y"
{
@@ -2270,7 +2275,7 @@ yyreduce:
/* Line 1267 of yacc.c. */
-#line 2274 "engines/director/lingo/lingo-gr.cpp"
+#line 2279 "engines/director/lingo/lingo-gr.cpp"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
diff --git a/engines/director/lingo/lingo-gr.y b/engines/director/lingo/lingo-gr.y
index f88e36db51..4e2c657519 100644
--- a/engines/director/lingo/lingo-gr.y
+++ b/engines/director/lingo/lingo-gr.y
@@ -293,7 +293,7 @@ begin: /* nothing */ { $$ = g_lingo->_currentScript->size(); }
;
end: /* nothing */ { g_lingo->code1(STOP); $$ = g_lingo->_currentScript->size(); }
;
-stmtlist: /* nothing */
+stmtlist: /* nothing */ { $$ = g_lingo->_currentScript->size(); }
| stmtlist nl
| stmtlist stmt
;