unitframes: fix max indicator calculation

This commit is contained in:
shagu
2019-04-19 18:01:05 +02:00
parent 77460e0134
commit d32d46b44e
+1 -1
View File
@@ -1652,7 +1652,7 @@ function pfUI.uf:AddIcon(frame, pos, icon)
local iconsize = C.unitframes.indicator_size
if not frame.hp then return end
local frame = frame.hp.bar
if pos > floor(frame:GetWidth() / iconsize) then return end
if pos > ceil(frame:GetWidth() / iconsize) then return end
if not frame.icon then frame.icon = {} end