Fix for server crash related to deleting a bot with a spawned pet

This commit is contained in:
Uleat 2016-05-30 03:03:55 -04:00
parent 2a74d04635
commit ecc9e41ab2

View File

@ -1795,6 +1795,8 @@ bool Bot::DeletePet()
NPC* pet_inst = GetPet()->CastToNPC();
pet_inst->SetOwnerID(0);
SetPet(nullptr);
return true;
}