fix table.copy

This commit is contained in:
Xertis 2024-12-08 23:49:16 +03:00 committed by GitHub
parent 92fb19ba5e
commit a2bf2bc1a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,11 @@ function table.copy(t)
local copied = {}
for k, v in pairs(t) do
copied[k] = v
if type(v) == "table" then
copied[k] = table.copy(v)
else
copied[k] = v
end
end
return copied