Skip to content

Commit

Permalink
DIRECTOR: Lingo: Fix when..then code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 19, 2016
1 parent 31b8ea4 commit 0a3d891
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/director/lingo/lingo-gr.cpp
Expand Up @@ -1993,7 +1993,7 @@ yyparse ()
{
inst end = 0;
WRITE_UINT32(&end, (yyvsp[(3) - (3)].code));
g_lingo->code1(g_lingo->c_whencode);
g_lingo->code1(STOP);
(*g_lingo->_currentScript)[(yyvsp[(1) - (3)].code) + 1] = end;
;}
break;
Expand Down
2 changes: 1 addition & 1 deletion engines/director/lingo/lingo-gr.y
Expand Up @@ -220,7 +220,7 @@ stmt: stmtoneliner
| when expr end {
inst end = 0;
WRITE_UINT32(&end, $3);
g_lingo->code1(g_lingo->c_whencode);
g_lingo->code1(STOP);
(*g_lingo->_currentScript)[$1 + 1] = end;
}
;
Expand Down

0 comments on commit 0a3d891

Please sign in to comment.