mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
Fix for server crash related to deleting a bot with a spawned pet
This commit is contained in:
parent
2a74d04635
commit
ecc9e41ab2
@ -1795,6 +1795,8 @@ bool Bot::DeletePet()
|
|||||||
NPC* pet_inst = GetPet()->CastToNPC();
|
NPC* pet_inst = GetPet()->CastToNPC();
|
||||||
pet_inst->SetOwnerID(0);
|
pet_inst->SetOwnerID(0);
|
||||||
|
|
||||||
|
SetPet(nullptr);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user