table.deepclone should clone the metatable too.
This commit is contained in:
parent
65df2ffbeb
commit
17620edaf8
@ -53,6 +53,7 @@
|
||||
clone[key] = copy(value)
|
||||
end
|
||||
|
||||
setmetatable(clone, getmetatable(object))
|
||||
return clone
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user