mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 19:52:26 +00:00
[Bug Fix] XTarget Changes Causing Crashes (#1915)
* [Bugfix] XTarget Changes Causing Crashes Added nullptr check when processing XTargetAutoHaters for pet owner. * [Bugfix] XTarget Changes Causing Crashes Added another needed sanity check after the nullptr check. * [Bugfix] XTarget Changes Causing Crashes Added another check against nullptr. * [Bugfix] XTarget Changes Causing Crashes Cleaned up nullptr checks per PR comments.
This commit is contained in:
parent
d6d4c458e7
commit
3853c4f150
@ -2571,7 +2571,7 @@ bool NPC::Death(Mob* killer_mob, int32 damage, uint16 spell, EQ::skills::SkillTy
|
|||||||
|
|
||||||
entity_list.RemoveFromAutoXTargets(this);
|
entity_list.RemoveFromAutoXTargets(this);
|
||||||
|
|
||||||
if (killer->GetUltimateOwner() && killer->GetUltimateOwner()->IsClient()) {
|
if (killer != nullptr && killer->GetUltimateOwner() && killer->GetUltimateOwner()->IsClient()) {
|
||||||
killer->GetUltimateOwner()->CastToClient()->ProcessXTargetAutoHaters();
|
killer->GetUltimateOwner()->CastToClient()->ProcessXTargetAutoHaters();
|
||||||
}
|
}
|
||||||
uint16 emoteid = this->GetEmoteID();
|
uint16 emoteid = this->GetEmoteID();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user