fixed issue with loading processes from memory
This commit is contained in:
parent
206d4af9e2
commit
37f1b48466
@ -78,9 +78,9 @@ if (modpol.orgs.array) then
|
||||
if type(org) == 'table' then
|
||||
setmetatable(org, modpol.orgs)
|
||||
-- sets process metatable on load
|
||||
if type(org.processes) == 'table' then
|
||||
for id, process in ipairs(org.processes) do
|
||||
setmetatable(process, modpol.modules[process.type])
|
||||
for id, process in ipairs(org.processes) do
|
||||
if type(process) == 'table' then
|
||||
setmetatable(process, modpol.modules[process.type])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user