modules should never be loaded twice

This commit is contained in:
Eric Mauser
2016-05-20 09:48:24 +02:00
parent 0769ad0b13
commit c3d3386c0e
+4 -2
View File
@@ -18,8 +18,10 @@ pfUI:SetScript("OnEvent", function()
if arg1 == "pfUI" then
pfUI:Debug("pfUI module loader:")
for i,m in pairs(this.modules) do
pfUI:Debug("=> " .. m)
pfUI.module[m]()
if not pfUI[m] then
pfUI.module[m]()
pfUI:Debug("=> " .. m)
end
end
end
end)