unitframes: limit amount to the number of textures

This commit is contained in:
shagu
2020-02-21 08:35:33 +01:00
parent 18bd54d54a
commit 790b9f01a2
+1 -1
View File
@@ -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