diff --git a/BigDebuffs.lua b/BigDebuffs.lua index 1a9daba..aabb29e 100755 --- a/BigDebuffs.lua +++ b/BigDebuffs.lua @@ -1519,7 +1519,9 @@ local CompactUnitFrame_UtilSetDebuff = CompactUnitFrame_UtilSetDebuff if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then hooksecurefunc("CompactUnitFrame_UpdateAuras", function(frame, unitAuraUpdateInfo) - if (not BigDebuffs.db.profile.raidFrames.enabled) then return end + if not BigDebuffs.db.profile then return end + if not BigDebuffs.db.profile.raidFrames then return end + if not BigDebuffs.db.profile.raidFrames.enabled then return end if (not frame) or frame:IsForbidden() then return end if (not UnitIsPlayer(frame.displayedUnit)) then return end BigDebuffs:ShowBigDebuffs(frame)