aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua
diff options
context:
space:
mode:
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.