From d7deff8845be10f6f5da309d224ccfcd52b9b18d Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 10 May 2024 23:36:56 +0200 Subject: [PATCH] actionbar: check for reagent table index not nil --- modules/actionbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index c7db502a..da3ed212 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -1612,7 +1612,7 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () local _, reagents = scanner:Find(reagent_capture) -- update on reagent requirement changes - if reagent_slots[slot] ~= reagents then + if reagents and reagent_slots[slot] ~= reagents then reagent_counts[reagents] = reagent_counts[reagents] or 0 reagent_slots[slot] = reagents updatecache[slot] = true