diff options
author | David Walter Seikel | 2014-03-22 17:10:36 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-03-22 17:10:36 +1000 |
commit | 33ac8eccde3d3116ec0cf528c7934d87a234a7b2 (patch) | |
tree | d6832845e5900e890934913194d3edbc1ceba41e /ClientHamr | |
parent | Fix up Thing inheritance again, remove get/set, and remove ThingSpace functio... (diff) | |
download | SledjHamr-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.lua | 2 |
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] |