Skip to content

Commit

Permalink
make sure buffFrame exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jordonwow committed Mar 25, 2022
1 parent a71bf6b commit c1292a1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,8 @@ else
return
end

if (not frame.buffFrames) then return end

local maxBuffs = BigDebuffs.db.profile.raidFrames.increaseBuffs and MAX_BUFFS or frame.maxBuffs

local index = 1;
Expand All @@ -1801,7 +1803,9 @@ else
if ( buffName ) then
if ( CompactUnitFrame_UtilShouldDisplayBuff(frame.displayedUnit, index, filter) and not CompactUnitFrame_UtilIsBossAura(frame.displayedUnit, index, filter, true) ) then
local buffFrame = frame.buffFrames[frameNum];
CompactUnitFrame_UtilSetBuff(buffFrame, frame.displayedUnit, index, filter);
if buffFrame then
CompactUnitFrame_UtilSetBuff(buffFrame, frame.displayedUnit, index, filter);
end
frameNum = frameNum + 1;
end
else
Expand All @@ -1811,7 +1815,9 @@ else
end
for i=frameNum, maxBuffs do
local buffFrame = frame.buffFrames[i];
buffFrame:Hide();
if buffFrame then
buffFrame:Hide();
end
end
end)
end
Expand Down

0 comments on commit c1292a1

Please sign in to comment.