Merge pull request #466 from Blizzard/deepclone-fix
table.deepclone should clone the metatable too.
This commit is contained in:
commit
3c4fca16f2
@ -53,6 +53,7 @@
|
|||||||
clone[key] = copy(value)
|
clone[key] = copy(value)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
setmetatable(clone, getmetatable(object))
|
||||||
return clone
|
return clone
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user