aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r--LuaSL/src/LuaSL_compile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 11860ad..c2efd8e 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -420,10 +420,10 @@ LSL_Leaf *addFunction(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identi
420 { 420 {
421 if (params->value.listValue) 421 if (params->value.listValue)
422 { 422 {
423 LSL_Identifier *identifier = params->value.listValue->value.identifierValue; 423 LSL_Leaf *param = params->value.listValue;
424 424
425 if (identifier) 425 if (identifier)
426 eina_hash_add(func->variables, identifier->name, identifier); 426 eina_hash_add(func->variables, param->value.identifierValue->name, param);
427 } 427 }
428 params = params->left; 428 params = params->left;
429 } 429 }
@@ -1218,3 +1218,4 @@ int main(int argc, char **argv)
1218 return 0; 1218 return 0;
1219} 1219}
1220#endif 1220#endif
1221