mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +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();
|
||||
pet_inst->SetOwnerID(0);
|
||||
|
||||
SetPet(nullptr);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user