diff options
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 1 | ||||
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 2674542..dee6263 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -225,7 +225,6 @@ struct _LSL_Block | |||
225 | LSL_Block *outerBlock; | 225 | LSL_Block *outerBlock; |
226 | // Eina_Hash *statements; // Probably should be some sort of eina list. | 226 | // Eina_Hash *statements; // Probably should be some sort of eina list. |
227 | Eina_Hash *variables; // Those variables in this scope. | 227 | Eina_Hash *variables; // Those variables in this scope. |
228 | int scount; | ||
229 | }; | 228 | }; |
230 | 229 | ||
231 | struct _LSL_Function | 230 | struct _LSL_Function |
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index d750fc4..fdfef47 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -212,11 +212,12 @@ void burnLeaf(void *data) | |||
212 | 212 | ||
213 | static LSL_Leaf *findVariable(LuaSL_compiler *compiler, const char *name) | 213 | static LSL_Leaf *findVariable(LuaSL_compiler *compiler, const char *name) |
214 | { | 214 | { |
215 | LSL_Block *block = compiler->currentBlock; | ||
216 | LSL_Leaf *var = NULL; | 215 | LSL_Leaf *var = NULL; |
217 | 216 | ||
218 | if (name) | 217 | if (name) |
219 | { | 218 | { |
219 | LSL_Block *block = compiler->currentBlock; | ||
220 | |||
220 | while ((block) && (NULL == var)) | 221 | while ((block) && (NULL == var)) |
221 | { | 222 | { |
222 | if (block->variables) | 223 | if (block->variables) |