fix table.copy
This commit is contained in:
parent
92fb19ba5e
commit
a2bf2bc1a1
@ -57,8 +57,12 @@ function table.copy(t)
|
|||||||
local copied = {}
|
local copied = {}
|
||||||
|
|
||||||
for k, v in pairs(t) do
|
for k, v in pairs(t) do
|
||||||
|
if type(v) == "table" then
|
||||||
|
copied[k] = table.copy(v)
|
||||||
|
else
|
||||||
copied[k] = v
|
copied[k] = v
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return copied
|
return copied
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user