mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Pets: Fix loading pet data
Closes #25269
(cherry picked from commit a9a4f05a28)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user