diff options
author | David Walter Seikel | 2014-03-31 18:30:07 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-03-31 18:30:07 +1000 |
commit | af13b25c632424c6dfa96967cd1c547316319d97 (patch) | |
tree | 89cb6a5e5afb0bae25059a54c74d6bd28e2a4194 | |
parent | Shuffle Stuff notes around a bit. (diff) | |
download | SledjHamr-af13b25c632424c6dfa96967cd1c547316319d97.zip SledjHamr-af13b25c632424c6dfa96967cd1c547316319d97.tar.gz SledjHamr-af13b25c632424c6dfa96967cd1c547316319d97.tar.bz2 SledjHamr-af13b25c632424c6dfa96967cd1c547316319d97.tar.xz |
A copy of a Thing should include itself as the module.
-rw-r--r-- | ClientHamr/GuiLua/skang.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index 9840cca..4283489 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua | |||
@@ -651,6 +651,7 @@ copy = function (module, name) | |||
651 | end | 651 | end |
652 | 652 | ||
653 | thingy.__stuff = modThing.__stuff | 653 | thingy.__stuff = modThing.__stuff |
654 | thingy.module = result | ||
654 | thingy.names = {name} | 655 | thingy.names = {name} |
655 | setmetatable(thingy, {__index = Thing}) | 656 | setmetatable(thingy, {__index = Thing}) |
656 | setmetatable(result, thingy) | 657 | setmetatable(result, thingy) |