Add exist check for definition id
This commit is contained in:
@@ -162,11 +162,13 @@ local getDragonflightTalentsAsIndexTable = function()
|
|||||||
local definitionId = traitEntryInfo.definitionID
|
local definitionId = traitEntryInfo.definitionID
|
||||||
|
|
||||||
--definition info
|
--definition info
|
||||||
local traitDefinitionInfo = C_Traits.GetDefinitionInfo(definitionId)
|
if (definitionId) then
|
||||||
local spellId = traitDefinitionInfo.overriddenSpellID or traitDefinitionInfo.spellID
|
local traitDefinitionInfo = C_Traits.GetDefinitionInfo(definitionId)
|
||||||
local spellName, _, spellTexture = GetSpellInfo(spellId)
|
local spellId = traitDefinitionInfo.overriddenSpellID or traitDefinitionInfo.spellID
|
||||||
if (spellName) then
|
local spellName, _, spellTexture = GetSpellInfo(spellId)
|
||||||
allTalents[#allTalents+1] = spellId
|
if (spellName) then
|
||||||
|
allTalents[#allTalents+1] = spellId
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user