aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-18 10:23:17 +0200
committerEugene Sandulenko2016-08-18 20:46:43 +0200
commit6a622b07eea5af8144cb9095249ac237de507c1c (patch)
tree470068d270f0743a8755918b71b63d3f34bce8cc /engines
parentcc9979a600bfbc0823c6b103b8ec03b472b2ea1d (diff)
downloadscummvm-rg350-6a622b07eea5af8144cb9095249ac237de507c1c.tar.gz
scummvm-rg350-6a622b07eea5af8144cb9095249ac237de507c1c.tar.bz2
scummvm-rg350-6a622b07eea5af8144cb9095249ac237de507c1c.zip
DIRECTOR: Lingo: Fix factory method code generation
Diffstat (limited to 'engines')
-rw-r--r--engines/director/lingo/lingo-gr.cpp2
-rw-r--r--engines/director/lingo/lingo-gr.y2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp
index 63128058ed..ab857b6c0c 100644
--- a/engines/director/lingo/lingo-gr.cpp
+++ b/engines/director/lingo/lingo-gr.cpp
@@ -2473,7 +2473,7 @@ yyreduce:
case 115:
#line 500 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->code1(STOP);
+ g_lingo->code1(g_lingo->c_procret);
g_lingo->define(*(yyvsp[(2) - (8)].s), (yyvsp[(4) - (8)].code), (yyvsp[(5) - (8)].narg) + 1, &g_lingo->_currentFactory);
g_lingo->_indef = false; ;}
break;
diff --git a/engines/director/lingo/lingo-gr.y b/engines/director/lingo/lingo-gr.y
index ea66bc6fd9..3b04ed05c7 100644
--- a/engines/director/lingo/lingo-gr.y
+++ b/engines/director/lingo/lingo-gr.y
@@ -498,7 +498,7 @@ defn: tMACRO ID { g_lingo->_indef = true; g_lingo->_currentFactory.clear(); }
}
| tMETHOD ID { g_lingo->_indef = true; }
begin argdef nl argstore stmtlist {
- g_lingo->code1(STOP);
+ g_lingo->code1(g_lingo->c_procret);
g_lingo->define(*$2, $4, $5 + 1, &g_lingo->_currentFactory);
g_lingo->_indef = false; } ;
argdef: /* nothing */ { $$ = 0; }