[Crash] Fix crash in Mob::ShowBuffs (#3632)

This commit is contained in:
Chris Miles 2023-10-15 21:14:55 -05:00 committed by GitHub
parent a1a861e0c4
commit 961332b40c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3460,10 +3460,10 @@ void Mob::ShowBuffs(Client* c) {
);
for (auto i = 0; i < GetMaxTotalSlots(); i++) {
const auto spell_id = buffs[i].spellid;
const auto buff_duration_formula = spells[spell_id].buff_duration_formula;
const auto spell_id = buffs[i].spellid;
if (IsValidSpell(spell_id)) {
const auto is_permanent = (
const auto buff_duration_formula = spells[spell_id].buff_duration_formula;
const auto is_permanent = (
buff_duration_formula == DF_Aura ||
buff_duration_formula == DF_Permanent
);