- missed a 'local' on a table in IceCore. whoops.

This commit is contained in:
Parnic
2010-10-20 05:23:12 +00:00
parent af5574e4a6
commit 9abae08235

View File

@ -143,7 +143,8 @@ function IceCore.prototype:Enable(userToggle)
end
-- go through the list of loaded elements that don't have associated settings and dump them
toRemove = {}
do
local toRemove = {}
for i = #self.elements, 1, -1 do
if not self.settings.modules[self.elements[i]:GetElementName()] then
toRemove[#toRemove + 1] = i
@ -152,6 +153,7 @@ function IceCore.prototype:Enable(userToggle)
for i=1,#toRemove do
table.remove(self.elements, toRemove[i])
end
end
for k,v in pairs(self.settings.modules) do
if self.settings.modules[k].customBarType == "Bar" and IceCustomBar ~= nil then