From 9ce86c55c6eecb522024529bc42ee81cf3ad3672 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 20 Apr 2014 05:13:38 +1000 Subject: Let actions and other stuff set in the thingasm() call work through their isValid(). --- ClientHamr/GuiLua/skang.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ClientHamr/GuiLua/skang.lua') diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index fdd61de..74bebd4 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -881,9 +881,9 @@ thingasm = function (names, ...) local args, err = loadstring('return ' .. thingy.widget) if args then setfenv(args, parent) - local result = widget(args()) -print('NO IDEA WHY this does isValid() three times on the action, and the first one being a string.') - parent.W[name] = {Cwidget = result} + thingy.Cwidget = widget(args()) +print('\nNO IDEA WHY this does isValid() three times on the action, and the first one being a string.') + parent.W[name] = thingy else print("ERROR - " .. err) end -- cgit v1.1