mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Fixed possible infinite loop in custom counters
Only try to redraw if the maximum count exceeds the numbers of frames we have to display the count. If the maximum drops below the number of frames we have to display it, that's fine because the excess frames will just be hidden.
This commit is contained in:
@ -438,7 +438,7 @@ function IceCustomCount.prototype:UpdateCustomCount()
|
||||
local points = IceStackCounter_GetCount(self)
|
||||
local max = IceStackCounter_GetMaxCount(self)
|
||||
|
||||
if max ~= #self.frame.graphical then
|
||||
if max > #self.frame.graphical then
|
||||
self:Redraw()
|
||||
return
|
||||
end
|
||||
|
Reference in New Issue
Block a user