aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/LuaSL/LuaSL_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LuaSL/LuaSL_compile.c')
-rw-r--r--src/LuaSL/LuaSL_compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LuaSL/LuaSL_compile.c b/src/LuaSL/LuaSL_compile.c
index f32e0c0..3265acf 100644
--- a/src/LuaSL/LuaSL_compile.c
+++ b/src/LuaSL/LuaSL_compile.c
@@ -991,7 +991,7 @@ LSL_Leaf *addFor(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, LSL_L
991 991
992LSL_Leaf *addStatement(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, LSL_Leaf *left, LSL_Leaf *expr, LSL_Leaf *right, LSL_Leaf *block, LSL_Leaf *identifier) 992LSL_Leaf *addStatement(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, LSL_Leaf *left, LSL_Leaf *expr, LSL_Leaf *right, LSL_Leaf *block, LSL_Leaf *identifier)
993{ 993{
994 gameGlobals *ourGlobals = compiler->game; 994// gameGlobals *ourGlobals = compiler->game;
995 LSL_Statement *stat = calloc(1, sizeof(LSL_Statement)); 995 LSL_Statement *stat = calloc(1, sizeof(LSL_Statement));
996 boolean justOne = FALSE; 996 boolean justOne = FALSE;
997 997
@@ -1112,17 +1112,17 @@ LSL_Leaf *addStatement(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow,
1112 } 1112 }
1113 } 1113 }
1114 1114
1115#if LUASL_DIFF_CHECK
1116 if (justOne && (flow)) 1115 if (justOne && (flow))
1117 { 1116 {
1117#if LUASL_DIFF_CHECK
1118 stat->ignorable = calloc(2, sizeof(Eina_Strbuf *)); 1118 stat->ignorable = calloc(2, sizeof(Eina_Strbuf *));
1119 if (stat->ignorable) 1119 if (stat->ignorable)
1120 { 1120 {
1121 stat->ignorable[1] = flow->ignorable; 1121 stat->ignorable[1] = flow->ignorable;
1122 flow->ignorable = NULL; 1122 flow->ignorable = NULL;
1123 } 1123 }
1124 }
1125#endif 1124#endif
1125 }
1126 1126
1127 if (lval) 1127 if (lval)
1128 { 1128 {