From 48c4c7e62ef1543c18fb8ef6559881677c747b1f Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 15 Jul 2018 22:12:30 +0200 Subject: [PATCH] tracking: fix nil error on table iteration --- modules/tracking.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tracking.lua b/modules/tracking.lua index 380b0fc9..03a9a642 100644 --- a/modules/tracking.lua +++ b/modules/tracking.lua @@ -148,7 +148,7 @@ pfUI:RegisterModule("tracking", function () end end - for _, texture in pairs(knownTrackingSpellTextures[playerClass]) do + for _, texture in pairs((knownTrackingSpellTextures[playerClass] or {})) do if strfind(spellTexture, texture) and not state.spells[texture] then state.spells[texture] = { index = spellIndex,