cooldown-numbers: ignore empty duration calls

This commit is contained in:
shagu
2023-01-05 14:28:06 +01:00
parent 46bdf0e467
commit f128639417
+1 -1
View File
@@ -63,7 +63,7 @@ local function SetCooldown(this, start, duration, enable)
if this.noCooldownCount then return end
-- don't draw global cooldowns
if duration < 2 then
if not duration or duration < 2 then
-- hide if already existing
if this.cooldowntext then
this.cooldowntext:Hide()