aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-30 04:46:53 +1000
committerDavid Walter Seikel2014-03-30 04:46:53 +1000
commit925e816866b60026a2a5870f4e18e8c933b9ed1b (patch)
treebabc97d4b6cce4fbda616f55f850438c9423c83a /ClientHamr/GuiLua
parentMore tests. (diff)
downloadSledjHamr-925e816866b60026a2a5870f4e18e8c933b9ed1b.zip
SledjHamr-925e816866b60026a2a5870f4e18e8c933b9ed1b.tar.gz
SledjHamr-925e816866b60026a2a5870f4e18e8c933b9ed1b.tar.bz2
SledjHamr-925e816866b60026a2a5870f4e18e8c933b9ed1b.tar.xz
Fix "can't store non Things in a Thing controlled module." bug.
Diffstat (limited to 'ClientHamr/GuiLua')
-rw-r--r--ClientHamr/GuiLua/skang.lua6
1 files changed, 4 insertions, 2 deletions
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)
484 end 484 end
485 -- TODO - Go through it's linked things and set them to. 485 -- TODO - Go through it's linked things and set them to.
486 end 486 end
487 -- Done, don't fall through to the rawset()
488 return
487 end 489 end
488 else
489 rawset(module, key, value) -- Stuff it normally.
490 end 490 end
491
492 rawset(module, key, value) -- Stuff it normally.
491end 493end
492 494
493 -- TODO - Seemed like a good idea at the time, but do we really need it? 495 -- TODO - Seemed like a good idea at the time, but do we really need it?