reverting metatable loading code

This commit is contained in:
Luke Miller
2021-04-23 22:26:04 -04:00
parent 6258855380
commit 23d4a54a8e
3 changed files with 8 additions and 5 deletions

View File

@@ -71,9 +71,10 @@ dofile (topdir .. "/api.lua")
-- ===================================================================
-- Final checks
for id, org in ipairs(modpol.orgs.array) do
setmetatable(org, modpol.orgs)
if type(org) == 'table' then
setmetatable(org, modpol.orgs)
end
end
-- create instance if not present