mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -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
|
||||
|
Reference in New Issue
Block a user