diff --git a/elements/power.lua b/elements/power.lua index bab26240..caba329f 100644 --- a/elements/power.lua +++ b/elements/power.lua @@ -219,7 +219,8 @@ local function Update(self, event, unit) end local cur, max = UnitPower(unit, displayType), UnitPowerMax(unit, displayType) - element:SetMinMaxValues(min or 0, max) + min = min or 0 -- ensure we always have a minimum value to avoid errors + element:SetMinMaxValues(min, max) if(UnitIsConnected(unit)) then element:SetValue(cur)