mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 02:30:50 +00:00
bags: check for textures before using them
This commit is contained in:
+1
-1
@@ -579,7 +579,7 @@ pfUI:RegisterModule("bags", "vanilla:tbc", function ()
|
|||||||
local spellTexture = GetSpellTexture(spellIndex, BOOKTYPE_SPELL)
|
local spellTexture = GetSpellTexture(spellIndex, BOOKTYPE_SPELL)
|
||||||
-- scan for disenchant and pick lock
|
-- scan for disenchant and pick lock
|
||||||
for texture, widget in pairs(knownInventorySpellTextures) do
|
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)
|
pfUI.bag.right[widget.frame]:SetID(spellIndex)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user