mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 08:32:25 +00:00
Merge pull request #35 from Valorith/fix/buff-suppression-dobufftick
Fix: Skip DoBuffTic() for SPELL_SUPPRESSED slots (prevents OOB access)
This commit is contained in:
commit
e412a9bb99
@ -3812,7 +3812,9 @@ void Mob::BuffProcess()
|
||||
{
|
||||
if (IsValidOrSuppressedSpell(buffs[buffs_i].spellid))
|
||||
{
|
||||
DoBuffTic(buffs[buffs_i], buffs_i, entity_list.GetMob(buffs[buffs_i].casterid));
|
||||
if (buffs[buffs_i].spellid != SPELL_SUPPRESSED) {
|
||||
DoBuffTic(buffs[buffs_i], buffs_i, entity_list.GetMob(buffs[buffs_i].casterid));
|
||||
}
|
||||
// If the Mob died during DoBuffTic, then the buff we are currently processing will have been removed
|
||||
if(!IsValidOrSuppressedSpell(buffs[buffs_i].spellid)) {
|
||||
continue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user