fixed issue with loading processes from memory

This commit is contained in:
Luke Miller 2021-06-08 23:09:13 -04:00
parent 206d4af9e2
commit 37f1b48466

View File

@ -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