mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 10:46:03 +00:00
unitframes: limit amount to the number of textures
This commit is contained in:
+1
-1
@@ -1715,7 +1715,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 > ceil(frame:GetWidth() / iconsize) then return end
|
||||
if pos > 6 or pos > ceil(frame:GetWidth() / iconsize) then return end
|
||||
|
||||
if not frame.icon then frame.icon = {} end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user