mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-25 17:16:02 +00:00
unitframes: fix max indicator calculation
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user