mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Fixed possible error generated in custom counters
Somehow even though "maxCount" is forced to a number any time it's configured in the UI, a user ended up with maxCount as a string in his saved variables. The mod was then trying to compare a string to a number and failing, causing a cascade of errors.
This commit is contained in:
@ -112,7 +112,7 @@ function IceStackCounter_GetMaxCount(frame)
|
||||
local _, max = GetSpellCharges(frame.moduleSettings.auraName)
|
||||
return max or 1
|
||||
else
|
||||
return frame.moduleSettings.maxCount
|
||||
return tonumber(frame.moduleSettings.maxCount)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user