Core/PetHandler: Correction of SMSG_PET_NAME_QUERY response packet sizes and structure (fix by Ramus)
(Client automatically handles re-queries if name is not supplied) Closes issue 4924. --HG-- branch : trunk
This commit is contained in:
@@ -412,9 +412,9 @@ void WorldSession::SendPetNameQuery(uint64 petguid, uint32 petnumber)
|
|||||||
Creature* pet = ObjectAccessor::GetCreatureOrPetOrVehicle(*_player, petguid);
|
Creature* pet = ObjectAccessor::GetCreatureOrPetOrVehicle(*_player, petguid);
|
||||||
if (!pet)
|
if (!pet)
|
||||||
{
|
{
|
||||||
WorldPacket data(SMSG_PET_NAME_QUERY_RESPONSE, (4+4+7+1));
|
WorldPacket data(SMSG_PET_NAME_QUERY_RESPONSE, (4+1+4+1));
|
||||||
data << uint32(petnumber);
|
data << uint32(petnumber);
|
||||||
data << "Unknown";
|
data << uint8(0);
|
||||||
data << uint32(0);
|
data << uint32(0);
|
||||||
data << uint8(0);
|
data << uint8(0);
|
||||||
_player->GetSession()->SendPacket(&data);
|
_player->GetSession()->SendPacket(&data);
|
||||||
|
|||||||
Reference in New Issue
Block a user