Core/BattlePets: Improvements when enabling battle pets
Port From (https://github.com/TrinityCore/TrinityCore/commit/0a8f79ad5ad5afbf6a6aedc9ad46c3b774877b31)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user