diff options
author | David Walter Seikel | 2012-01-17 16:00:03 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-17 16:00:03 +1000 |
commit | 074369a92f32d3eacb9e1049adb82cf1a0333435 (patch) | |
tree | 4a0c25d407ead9de35a0d18668246a08b8af6f1c /LuaSL/src/LuaSL_compile.c | |
parent | Clean up variable declarations. (diff) | |
download | SledjHamr-074369a92f32d3eacb9e1049adb82cf1a0333435.zip SledjHamr-074369a92f32d3eacb9e1049adb82cf1a0333435.tar.gz SledjHamr-074369a92f32d3eacb9e1049adb82cf1a0333435.tar.bz2 SledjHamr-074369a92f32d3eacb9e1049adb82cf1a0333435.tar.xz |
A little cleanup.
Diffstat (limited to '')
-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) |