table.deepclone should clone the metatable too.

This commit is contained in:
Tom van Dijck 2016-04-06 15:45:15 -07:00
parent 65df2ffbeb
commit 17620edaf8

View File

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