Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Server/PacketIO: Fix wildBattlePet guid
Browse files Browse the repository at this point in the history
  • Loading branch information
AriDEV3 committed Jan 15, 2024
1 parent ee55efb commit e419916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Handlers/BattlePetHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void WorldSession::HandleBattlePetWildRequest(WorldPacket& recvData)
if (hasResult)
recvData >> petBattleRequest.LocationResult;

Creature* wildBattlePet = ObjectAccessor::GetCreatureOrPetOrVehicle(*GetPlayer(), petBattleRequest.EnemyGUID);
Creature* wildBattlePet = ObjectAccessor::GetCreatureOrPetOrVehicle(*GetPlayer(), guid);
petBattleRequest.Type = PetBattleRequest::PET_BATTLE_TYPE_PVE;
petBattleRequest.Challenger = GetPlayer();
petBattleRequest.Enemy = wildBattlePet;
Expand Down

0 comments on commit e419916

Please sign in to comment.