mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 01:08:21 +00:00
Fix for server crash related to deleting a bot with a spawned pet
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user