[Bug Fix] Replace uses of SPELL_UNKNOWN with IsValidSpell() (#2938)

This commit is contained in:
Aeadoin
2023-02-15 22:01:35 -05:00
committed by GitHub
parent 4a64048744
commit 5ee2856133
14 changed files with 134 additions and 116 deletions
+1 -1
View File
@@ -823,7 +823,7 @@ void Client::InspectBuffs(Client* Inspector, int Rank)
uint32 buff_count = GetMaxTotalSlots();
uint32 packet_index = 0;
for (uint32 i = 0; i < buff_count; i++) {
if (buffs[i].spellid == SPELL_UNKNOWN)
if (!IsValidSpell(buffs[i].spellid))
continue;
ib->spell_id[packet_index] = buffs[i].spellid;
if (Rank > 1)