Merge pull request #416 from RichardTry/patch-1
Copy metatable in table.deep_copy
This commit is contained in:
commit
9ef18498ff
@ -74,7 +74,7 @@ function table.deep_copy(t)
|
||||
end
|
||||
end
|
||||
|
||||
return copied
|
||||
return setmetatable(copied, getmetatable(t))
|
||||
end
|
||||
|
||||
function table.count_pairs(t)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user