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