From 790b9f01a23fc5cd4a61654f32b04a33af955291 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 21 Feb 2020 08:35:33 +0100 Subject: [PATCH] unitframes: limit amount to the number of textures --- api/unitframes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 867310c8..98f67a77 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -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