Merge pull request #466 from Blizzard/deepclone-fix

table.deepclone should clone the metatable too.
This commit is contained in:
Tom van Dijck 2016-04-07 10:09:35 -07:00
commit 3c4fca16f2

View File

@ -53,6 +53,7 @@
clone[key] = copy(value)
end
setmetatable(clone, getmetatable(object))
return clone
end