aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-22 17:10:36 +1000
committerDavid Walter Seikel2014-03-22 17:10:36 +1000
commit33ac8eccde3d3116ec0cf528c7934d87a234a7b2 (patch)
treed6832845e5900e890934913194d3edbc1ceba41e /ClientHamr/GuiLua
parentFix up Thing inheritance again, remove get/set, and remove ThingSpace functio... (diff)
downloadSledjHamr-33ac8eccde3d3116ec0cf528c7934d87a234a7b2.zip
SledjHamr-33ac8eccde3d3116ec0cf528c7934d87a234a7b2.tar.gz
SledjHamr-33ac8eccde3d3116ec0cf528c7934d87a234a7b2.tar.bz2
SledjHamr-33ac8eccde3d3116ec0cf528c7934d87a234a7b2.tar.xz
Fix infinite lookup loop.
Diffstat (limited to '')
-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 75a0cd4..ec88dd6 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -153,7 +153,7 @@ Thing =
153 local thing = things[key] 153 local thing = things[key]
154 154
155 -- First see if this is a Thing. 155 -- First see if this is a Thing.
156 if thing then return table[thing.names[1] ] end 156 if thing and (key ~= thing.names[1]) then return table[thing.names[1] ] end
157 157
158 -- Then see if we can inherit it from Thing. 158 -- Then see if we can inherit it from Thing.
159 thing = Thing[key] 159 thing = Thing[key]