From e11c036ba8c49d89c9276da9313d63ec3ca22dc7 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 9 Jul 2016 23:53:19 +0200 Subject: DIRECTOR: Lingo: Fix multiline if() statements --- engines/director/lingo/lingo-gr.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/director/lingo/lingo-gr.y') diff --git a/engines/director/lingo/lingo-gr.y b/engines/director/lingo/lingo-gr.y index 6af9ca145f..3006176583 100644 --- a/engines/director/lingo/lingo-gr.y +++ b/engines/director/lingo/lingo-gr.y @@ -185,7 +185,7 @@ ifstmt: if cond tTHEN nl stmtlist end tEND tIF { (*g_lingo->_currentScript)[$1 + 1] = then; /* thenpart */ (*g_lingo->_currentScript)[$1 + 3] = end; /* end, if cond fails */ g_lingo->processIf(0, 0); } - | if cond tTHEN nl stmtlist end tELSE stmtlist end tEND tIF { + | if cond tTHEN nl stmtlist end tNLELSE stmtlist end tEND tIF { inst then = 0, else1 = 0, end = 0; WRITE_UINT32(&then, $5); WRITE_UINT32(&else1, $8); -- cgit v1.2.3