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)
|
||||
end
|
||||
|
||||
setmetatable(clone, getmetatable(object))
|
||||
return clone
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user