diff options
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |