aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/skang.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-22 18:01:23 +1000
committerDavid Walter Seikel2014-03-22 18:01:23 +1000
commitc13ada054617f6ebceffc80dfea61cd820c216a3 (patch)
tree1f4fa85c2d37c38d678845f7be2d51a0015aeeed /ClientHamr/GuiLua/skang.lua
parentActually check if we need to return Thing default, and return it. (diff)
downloadSledjHamr-c13ada054617f6ebceffc80dfea61cd820c216a3.zip
SledjHamr-c13ada054617f6ebceffc80dfea61cd820c216a3.tar.gz
SledjHamr-c13ada054617f6ebceffc80dfea61cd820c216a3.tar.bz2
SledjHamr-c13ada054617f6ebceffc80dfea61cd820c216a3.tar.xz
Test and fix setting nil on a Thing with a default.
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r--ClientHamr/GuiLua/skang.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index 327dc38..c0c63dc 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -184,7 +184,7 @@ Thing =
184 print(thing.module._NAME .. '.' .. name .. '(' .. types .. ') -> ' .. thing.help) 184 print(thing.module._NAME .. '.' .. name .. '(' .. types .. ') -> ' .. thing.help)
185 else 185 else
186 thing:isValid() 186 thing:isValid()
187 print(thing.types[1] .. ' ' .. thing.module._NAME .. '.' .. name .. ' = ' .. value .. ' -> ' .. thing.help) 187 print(thing.types[1] .. ' ' .. thing.module._NAME .. '.' .. name .. ' = ' .. (value or 'nil') .. ' -> ' .. thing.help)
188 -- TODO - Go through it's linked things and set them to. 188 -- TODO - Go through it's linked things and set them to.
189 end 189 end
190 rawset(table, name, value) 190 rawset(table, name, value)