From 961332b40c7f7ce0235fa08461cd07e99f943c93 Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Sun, 15 Oct 2023 21:14:55 -0500 Subject: [PATCH] [Crash] Fix crash in Mob::ShowBuffs (#3632) --- zone/mob.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone/mob.cpp b/zone/mob.cpp index 1a4a20ba4..9eb0f0f68 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -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 );