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