mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +00:00
[Crash] Fix crash in Mob::ShowBuffs (#3632)
This commit is contained in:
parent
a1a861e0c4
commit
961332b40c
@ -3461,8 +3461,8 @@ void Mob::ShowBuffs(Client* c) {
|
|||||||
|
|
||||||
for (auto i = 0; i < GetMaxTotalSlots(); i++) {
|
for (auto i = 0; i < GetMaxTotalSlots(); i++) {
|
||||||
const auto spell_id = buffs[i].spellid;
|
const auto spell_id = buffs[i].spellid;
|
||||||
const auto buff_duration_formula = spells[spell_id].buff_duration_formula;
|
|
||||||
if (IsValidSpell(spell_id)) {
|
if (IsValidSpell(spell_id)) {
|
||||||
|
const auto buff_duration_formula = spells[spell_id].buff_duration_formula;
|
||||||
const auto is_permanent = (
|
const auto is_permanent = (
|
||||||
buff_duration_formula == DF_Aura ||
|
buff_duration_formula == DF_Aura ||
|
||||||
buff_duration_formula == DF_Permanent
|
buff_duration_formula == DF_Permanent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user