fixed typo and added instance creation to modpol.lua
This commit is contained in:
@@ -18,6 +18,7 @@ function modpol.orgs.get_org(id)
|
||||
end
|
||||
elseif type(id) == 'number' then
|
||||
return modpol.orgs.array[id]
|
||||
end
|
||||
end
|
||||
|
||||
-- ===============================================
|
||||
@@ -39,9 +40,9 @@ end
|
||||
-- ===========================================
|
||||
-- deletes all orgs except for the instance
|
||||
function modpol.orgs.reset()
|
||||
for k, v in ipairs(modpol.orgs.array) do
|
||||
if k > 1 then
|
||||
modpol.orgs.array[k] = nil
|
||||
for id, org in ipairs(modpol.orgs.array) do
|
||||
if id > 1 then
|
||||
modpol.orgs.array[id] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user