From 925e816866b60026a2a5870f4e18e8c933b9ed1b Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 30 Mar 2014 04:46:53 +1000 Subject: Fix "can't store non Things in a Thing controlled module." bug. --- ClientHamr/GuiLua/skang.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ClientHamr/GuiLua') diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index de007fc..aa3e084 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -484,10 +484,12 @@ Thing.__newindex = function (module, key, value) end -- TODO - Go through it's linked things and set them to. end + -- Done, don't fall through to the rawset() + return end - else - rawset(module, key, value) -- Stuff it normally. end + + rawset(module, key, value) -- Stuff it normally. end -- TODO - Seemed like a good idea at the time, but do we really need it? -- cgit v1.1