aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/LuaSL
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/LuaSL/LuaSL_compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LuaSL/LuaSL_compile.c b/src/LuaSL/LuaSL_compile.c
index 90c9ac1..e31e157 100644
--- a/src/LuaSL/LuaSL_compile.c
+++ b/src/LuaSL/LuaSL_compile.c
@@ -1613,11 +1613,12 @@ static void outputRawStatement(FILE *file, outputMode mode, LSL_Statement *state
1613 fprintf(file, " "); 1613 fprintf(file, " ");
1614 if (LSL_ELSE != statement->type) 1614 if (LSL_ELSE != statement->type)
1615 { 1615 {
1616 fprintf(file, "_LSL.toBool(");
1616 if (statement->parenthesis) 1617 if (statement->parenthesis)
1617 outputRawParenthesisToken(file, mode, statement->parenthesis, ""); 1618 outputRawParenthesisToken(file, mode, statement->parenthesis, "");
1618 else 1619 else
1619 outputLeaf(file, mode, statement->expressions); 1620 outputLeaf(file, mode, statement->expressions);
1620 fprintf(file, " then\n"); 1621 fprintf(file, ") then\n");
1621 } 1622 }
1622 if (statement->block) 1623 if (statement->block)
1623 outputRawBlock(file, mode, statement->block, FALSE); 1624 outputRawBlock(file, mode, statement->block, FALSE);