from retail

This commit is contained in:
NoM0Re
2025-01-25 20:07:12 +01:00
parent c066688fef
commit 4a326118da
10 changed files with 212 additions and 81 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ function spellCache.GetIcon(name)
if (icons) then
if (icons.spells) then
for spellId, icon in pairs(icons.spells) do
if not bestMatch or (type(spellId) == "number" and IsSpellKnown(spellId)) then
if not bestMatch or (type(spellId) == "number" and spellId ~= 0 and IsSpellKnown(spellId)) then
bestMatch = spellId
end
end