mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
[Crash] Fix crash in Mob::ShowBuffs (#3632)
This commit is contained in:
parent
a1a861e0c4
commit
961332b40c
@ -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
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user