- 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,14 +143,16 @@ function IceCore.prototype:Enable(userToggle)
end
-- go through the list of loaded elements that don't have associated settings and dump them
toRemove = {}
for i = #self.elements, 1, -1 do
if not self.settings.modules[self.elements[i]:GetElementName()] then
toRemove[#toRemove + 1] = i
do
local toRemove = {}
for i = #self.elements, 1, -1 do
if not self.settings.modules[self.elements[i]:GetElementName()] then
toRemove[#toRemove + 1] = i
end
end
for i=1,#toRemove do
table.remove(self.elements, toRemove[i])
end
end
for i=1,#toRemove do
table.remove(self.elements, toRemove[i])
end
for k,v in pairs(self.settings.modules) do