Skip to content

Commit

Permalink
Fix nil GetSpellInfo() handling when constructing lookup table
Browse files Browse the repository at this point in the history
  • Loading branch information
jordonwow committed Feb 29, 2024
1 parent 930479a commit d915751
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ local spellIdByName
if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then
spellIdByName = {}
for id, value in pairs(BigDebuffs.Spells) do
if not value.parent then spellIdByName[GetSpellInfo(id)] = id end
local spellName = GetSpellInfo(id)
if spellName and (not value.parent) then spellIdByName[spellName] = id end
end
else
defaults.profile.unitFrames.focus = {
Expand Down

0 comments on commit d915751

Please sign in to comment.