Fixed table error on processes load
This commit is contained in:
parent
aa6bb06d5c
commit
592226fe5a
@ -78,8 +78,10 @@ if (modpol.orgs.array) then
|
||||
if type(org) == 'table' then
|
||||
setmetatable(org, modpol.orgs)
|
||||
-- sets process metatable on load
|
||||
for id, process in ipairs(org.processes) do
|
||||
setmetatable(process, modpol.modules[process.type])
|
||||
if type(org.processes) == 'table' then
|
||||
for id, process in ipairs(org.processes) do
|
||||
setmetatable(process, modpol.modules[process.type])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -92,4 +94,4 @@ modpol.instance = modpol.orgs.array[1] or modpol.orgs.init_instance()
|
||||
modpol.ocutil.log ("modpol loaded")
|
||||
|
||||
-- ===================================================================
|
||||
-- End of file.
|
||||
-- End of file.
|
||||
|
Loading…
x
Reference in New Issue
Block a user