diff --git a/src/factory/PlayerbotFactory.cpp b/src/factory/PlayerbotFactory.cpp index 4f8ac52b..e22671ea 100644 --- a/src/factory/PlayerbotFactory.cpp +++ b/src/factory/PlayerbotFactory.cpp @@ -865,7 +865,8 @@ void PlayerbotFactory::InitPet() uint32 pet_number = sObjectMgr->GeneratePetNumber(); if (bot->GetPetStable() && bot->GetPetStable()->CurrentPet) { - bot->GetPetStable()->CurrentPet.value(); + auto petGuid = bot->GetPetStable()->CurrentPet.value(); // To correct the build warnin in VS + // bot->GetPetStable()->CurrentPet.value(); // bot->GetPetStable()->CurrentPet.reset(); bot->RemovePet(nullptr, PET_SAVE_AS_CURRENT); bot->RemovePet(nullptr, PET_SAVE_NOT_IN_SLOT);