From 8bca6cd8ad3139ff39f6f9d041d1241ab8c8f3c2 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 5 Jun 2025 23:52:15 +0200 Subject: [PATCH] actionbar: check frames before accessing them --- modules/actionbar.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 7fe3ef5e..ffa0c99c 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -1439,11 +1439,11 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () else bars[1].mergedBackdrop:Hide() - if C.bars.bar1.background == "1" then - bars[i].backdrop:Show() + if C.bars.bar1.background == "1" and bars[1].backdrop then + bars[1].backdrop:Show() end - if C.bars.bar6.background == "1" then + if C.bars.bar6.background == "1" and bars[6].backdrop then bars[6].backdrop:Show() end end