mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
fix(Core/Pets): fixed crash happening when current pet is forcibly removed (#10025)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user