mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Fixed potential crash related to Pets/Mercs buffs when targeting themselves.
This commit is contained in:
@@ -4161,7 +4161,7 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
|
||||
EQApplicationPacket *outapp = MakeBuffsPacket();
|
||||
|
||||
entity_list.QueueClientsByTarget(this, outapp, false, nullptr, true, false, BIT_SoDAndLater);
|
||||
if(GetTarget() == this) {
|
||||
if(IsClient() && GetTarget() == this) {
|
||||
CastToClient()->QueuePacket(outapp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user