Resolved merge conflicts with master
This commit is contained in:
@ -9,8 +9,14 @@ modpol.util = {}
|
||||
-- @return copy of table
|
||||
function modpol.util.copy_table(t)
|
||||
local t2 = {}
|
||||
for k,v in pairs(t) do
|
||||
t2[k] = v
|
||||
if pairs(t) then
|
||||
for k,v in pairs(t) do
|
||||
if type(v) == "table" then
|
||||
t2[k] = modpol.util.copy_table(v)
|
||||
else
|
||||
t2[k] = v
|
||||
end
|
||||
end
|
||||
end
|
||||
return t2
|
||||
end
|
||||
|
Reference in New Issue
Block a user