Added change_modules mod and lots of bugfixes. Now merging to master.
This commit is contained in:
9
modpol_core/util/misc.lua
Normal file
9
modpol_core/util/misc.lua
Normal file
@ -0,0 +1,9 @@
|
||||
--- @function modpol.copy_table
|
||||
-- Returns a copy of the table inputted
|
||||
function modpol.copy_table(t)
|
||||
local t2 = {}
|
||||
for k,v in pairs(t) do
|
||||
t2[k] = v
|
||||
end
|
||||
return t2
|
||||
end
|
Reference in New Issue
Block a user