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
|
||||||
end
|
end
|
||||||
|
|
||||||
return copied
|
return setmetatable(copied, getmetatable(t))
|
||||||
end
|
end
|
||||||
|
|
||||||
function table.count_pairs(t)
|
function table.count_pairs(t)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user