From d32d46b44e4f12938b0893968cf550d58aa8cd23 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 19 Apr 2019 18:01:05 +0200 Subject: [PATCH] unitframes: fix max indicator calculation --- api/unitframes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 5e55c952..ebf4e2fb 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -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