aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-26 17:27:46 +1000
committerDavid Walter Seikel2014-03-26 17:27:46 +1000
commit52a89591456ef394dc1125afbbead56155b5457a (patch)
treea6b16161ca419841d0dd54c7b23c89127957678a /ClientHamr
parentJust rearrange Things a little. B-) (diff)
downloadSledjHamr-52a89591456ef394dc1125afbbead56155b5457a.zip
SledjHamr-52a89591456ef394dc1125afbbead56155b5457a.tar.gz
SledjHamr-52a89591456ef394dc1125afbbead56155b5457a.tar.bz2
SledjHamr-52a89591456ef394dc1125afbbead56155b5457a.tar.xz
TODO++, maybe.
Diffstat (limited to '')
-rw-r--r--ClientHamr/GuiLua/skang.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index 9bb842d..4d25dff 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -247,6 +247,7 @@ Thing.__index = function (table, key)
247 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist. 247 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist.
248 local thing = things[key] 248 local thing = things[key]
249 -- First see if this is a Thing. 249 -- First see if this is a Thing.
250 -- TODO - Java skang called isValid() on get(). On the other hand, doesn't seem to call it on set(), but calls it on append().
250 if thing then return thing.value or thing.default end 251 if thing then return thing.value or thing.default end
251 252
252 -- Then see if we can inherit it from Thing. 253 -- Then see if we can inherit it from Thing.