actionbar: avoid adding updates to invalid bars

This commit is contained in:
shagu
2021-05-06 10:05:21 +02:00
parent 98d9f4c164
commit c840a70175
+2 -2
View File
@@ -707,7 +707,7 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
-- handle aura events
if aura_events[event] then
for j=1,12 do
if self[11][j] then
if self[11] and self[11][j] then
updatecache[self[11][j].slot] = true
end
end
@@ -717,7 +717,7 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
-- handle pet events
if pet_events[event] then
for j=1,12 do
if self[12][j] then
if self[12] and self[12][j] then
updatecache[self[12][j].slot] = true
end
end