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:
@ -646,7 +646,7 @@ function IceCore.prototype:ConfigModeToggle(bWantConfig)
|
||||
end
|
||||
|
||||
-- blank the bottom text that we set before. if the module uses this text, it will reset itself on redraw
|
||||
if self.elements[i].IsBarElement then
|
||||
if self.elements[i].IsBarElement and self.elements[i].frame then
|
||||
self.elements[i]:SetBottomText1()
|
||||
end
|
||||
|
||||
|
@ -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