From 087535f66bee54c3cdee9cf27797b601bb18aec4 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 17 Jan 2020 22:18:44 +0100 Subject: [PATCH] bags: check for textures before using them --- modules/bags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bags.lua b/modules/bags.lua index 10142892..e7594100 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -579,7 +579,7 @@ pfUI:RegisterModule("bags", "vanilla:tbc", function () local spellTexture = GetSpellTexture(spellIndex, BOOKTYPE_SPELL) -- scan for disenchant and pick lock for texture, widget in pairs(knownInventorySpellTextures) do - if strfind(spellTexture, texture) and pfUI.bag.right[widget.frame] then + if spellTexture and texture and strfind(spellTexture, texture) and pfUI.bag.right[widget.frame] then pfUI.bag.right[widget.frame]:SetID(spellIndex) end end