tracking: fix nil error on table iteration

This commit is contained in:
shagu
2018-07-15 22:12:30 +02:00
parent 387854e801
commit 48c4c7e62e
+1 -1
View File
@@ -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,