From 88159ed7c6ab50a54667042ee25fa2566ac9ad6e Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 16 Jun 2019 15:24:34 +0200 Subject: [PATCH] tracking: check for spell texture before using it --- modules/tracking.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tracking.lua b/modules/tracking.lua index e9ab777d..3a9b26cb 100644 --- a/modules/tracking.lua +++ b/modules/tracking.lua @@ -146,7 +146,7 @@ pfUI:RegisterModule("tracking", "vanilla", function () -- scan for generic tracking icons for _, texture in pairs(knownTrackingSpellTextures["any"]) do - if strfind(spellTexture, texture) and not state.spells[texture] then + if spellTexture and strfind(spellTexture, texture) and not state.spells[texture] then state.spells[texture] = { index = spellIndex, name = GetSpellName(spellIndex, BOOKTYPE_SPELL), @@ -158,7 +158,7 @@ pfUI:RegisterModule("tracking", "vanilla", function () -- scan class specific tracking icons if knownTrackingSpellTextures[playerClass] then for _, texture in pairs(knownTrackingSpellTextures[playerClass]) do - if strfind(spellTexture, texture) and not state.spells[texture] then + if spellTexture and strfind(spellTexture, texture) and not state.spells[texture] then state.spells[texture] = { index = spellIndex, name = GetSpellName(spellIndex, BOOKTYPE_SPELL),