mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added tons of divide-by-zero protection all over the place
- general cleanup of values passed to UpdateBar
This commit is contained in:
@ -59,7 +59,7 @@ function DruidMana.prototype:Update()
|
||||
self:Show(true)
|
||||
end
|
||||
|
||||
self:UpdateBar(self.druidMana / self.druidManaMax, "DruidMana")
|
||||
self:UpdateBar(self.druidManaMax > 0 and self.druidMana / self.druidManaMax or 0, "DruidMana")
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user