fix(Core/Pets): fixed crash happening when current pet is forcibly removed (#10025)
This commit is contained in:
parent
b2df4aa970
commit
c1ebda66ba
8 changed files with 50 additions and 10 deletions
|
|
@ -71,7 +71,9 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
if (player->GetPetGUID())
|
||||
PetStable const* petStable = player->GetPetStable();
|
||||
|
||||
if (petStable && (petStable->CurrentPet || petStable->GetUnslottedHunterPet()))
|
||||
{
|
||||
handler->PSendSysMessage("You already have a pet");
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue