diff options
Diffstat (limited to 'engines/director/lingo/lingo-gr.y')
-rw-r--r-- | engines/director/lingo/lingo-gr.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-gr.y b/engines/director/lingo/lingo-gr.y index cfed29a6d3..e718d4806a 100644 --- a/engines/director/lingo/lingo-gr.y +++ b/engines/director/lingo/lingo-gr.y @@ -364,7 +364,8 @@ expr: INT { g_lingo->code1(numpar); delete $1; } | ID { - $$ = g_lingo->codeId(*$1); + $$ = g_lingo->code1(g_lingo->c_eval); + g_lingo->codeString($1->c_str()); delete $1; } | THEENTITY { $$ = g_lingo->code2(g_lingo->c_constpush, 0); // Put dummy id |