mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 12:42:26 +00:00
Merge pull request #38 from Valorith/fix/buff-suppression-client-desync
Fix: Prevent OOB access in BuffFadeBySlot for suppressed buffs
This commit is contained in:
commit
ec2c4b5909
@ -4270,6 +4270,9 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses, bool suppress, uint32 su
|
||||
}
|
||||
}
|
||||
|
||||
// Skip effect removal for suppressed slots — effects were already removed
|
||||
// during initial suppression, and accessing spells[SPELL_SUPPRESSED] would be OOB.
|
||||
if (buffs[slot].spellid != SPELL_SUPPRESSED)
|
||||
for (int i=0; i < EFFECT_COUNT; i++)
|
||||
{
|
||||
if(IsBlankSpellEffect(buffs[slot].spellid, i))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user