mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +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
|
local iconsize = C.unitframes.indicator_size
|
||||||
if not frame.hp then return end
|
if not frame.hp then return end
|
||||||
local frame = frame.hp.bar
|
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
|
if not frame.icon then frame.icon = {} end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user