Core/BattlePets: Improvements when enabling battle pets

Port From (https://github.com/TrinityCore/TrinityCore/commit/0a8f79ad5ad5afbf6a6aedc9ad46c3b774877b31)
This commit is contained in:
hondacrx
2021-12-16 13:10:24 -05:00
parent f7023cb290
commit da41af6279
5 changed files with 29 additions and 14 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ namespace Game
BattlePetMgr.BattlePet pet = GetBattlePetMgr().GetPet(battlePetSetBattleSlot.PetGuid);
if (pet != null)
{
BattlePetSlot slot = GetBattlePetMgr().GetSlot(battlePetSetBattleSlot.Slot);
BattlePetSlot slot = GetBattlePetMgr().GetSlot((BattlePetSlots)battlePetSetBattleSlot.Slot);
if (slot != null)
slot.Pet = pet.PacketInfo;
}