Core/Pets: Fix loading pet data

Closes #25269

(cherry picked from commit a9a4f05a28)
This commit is contained in:
Shauren
2020-08-17 20:01:48 +02:00
parent 87b1c3700e
commit 4de94169e9

View File

@@ -339,6 +339,9 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petEntry, uint32 petnumber, bool c
petStable->CurrentPet = std::move(*unslottedPetItr);
petStable->UnslottedPets.erase(unslottedPetItr);
// old petInfo pointer is no longer valid, refresh it
petInfo = &petStable->CurrentPet.value();
}
// Send fake summon spell cast - this is needed for correct cooldown application for spells