mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 01:13:35 +00:00
Fix for server crash related to deleting a bot with a spawned pet
This commit is contained in:
1 parent
2a74d04635
commit
ecc9e41ab2
1 file changed
+2
@@ -1795,6 +1795,8 @@ bool Bot::DeletePet()
|
||||
NPC* pet_inst = GetPet()->CastToNPC();
|
||||
pet_inst->SetOwnerID(0);
|
||||
|
||||
SetPet(nullptr);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user