mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +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:
+1
-1
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user