diff --git a/api/unitframes.lua b/api/unitframes.lua index ba18c83b..76b3e413 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -882,14 +882,14 @@ function pfUI.uf:RefreshUnit(unit, component) break end end - - -- add icons for every found buff - for pos, icon in pairs(active) do - pfUI.uf:AddIcon(unit, pos, icon) - end end end + -- add icons for every found buff + for pos, icon in pairs(active) do + pfUI.uf:AddIcon(unit, pos, icon) + end + -- hide unued icon slots for pos=table.getn(active)+1, 6 do pfUI.uf:HideIcon(unit, pos)