From 1c3a3999bc5ba33ffbf4af9786a2d2adf436cc1f Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 22 Jan 2012 14:36:22 +1000 Subject: This is why states where not printing properly. --- LuaSL/src/LuaSL_compile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index c2cf781..0e1ae50 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -621,6 +621,7 @@ LSL_Leaf *addState(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Leaf *blo result->name = identifier->value.stringValue; result->block = block; identifier->value.stateValue = result; + identifier->token = tokens[LSL_STATE - lowestToken]; eina_hash_add(compiler->script.states, result->name, identifier); } -- cgit v1.1