mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 09:38:21 +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:
@@ -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++)
|
for (int i=0; i < EFFECT_COUNT; i++)
|
||||||
{
|
{
|
||||||
if(IsBlankSpellEffect(buffs[slot].spellid, i))
|
if(IsBlankSpellEffect(buffs[slot].spellid, i))
|
||||||
|
|||||||
Reference in New Issue
Block a user