Merge pull request #416 from RichardTry/patch-1

Copy metatable in table.deep_copy
This commit is contained in:
MihailRis 2024-12-19 02:46:32 +03:00 committed by GitHub
commit 9ef18498ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ function table.deep_copy(t)
end
end
return copied
return setmetatable(copied, getmetatable(t))
end
function table.count_pairs(t)