- potentially fixed reported error message though i've never seen it pop up myself

- fixed one instance of some global taint (neglected to declare _ as a local var)
This commit is contained in:
Parnic
2010-10-15 00:32:28 +00:00
parent 86ee5ca6c1
commit e9ac3fd078
2 changed files with 3 additions and 2 deletions

View File

@ -222,7 +222,8 @@ function IceUnitBar.prototype:Update()
self.maxMana = UnitPowerMax(self.unit)
self.manaPercentage = self.maxMana ~= 0 and (self.mana/self.maxMana) or 0
_, self.unitClass = UnitClass(self.unit)
local locClass
locClass, self.unitClass = UnitClass(self.unit)
if( self.moduleSettings.scaleHealthColor ) then
if self.healthPercentage > 0.5 then