Skip to content

Commit

Permalink
Minor codestyle change for SMSG_PET_NAME_INVALID
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jul 21, 2024
1 parent ec35b88 commit d4535ec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/game/Entities/PetHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,14 +835,10 @@ void WorldSession::SendPetNameInvalid(uint32 error, const std::string& name, Dec
WorldPacket data(SMSG_PET_NAME_INVALID, 4 + name.size() + 1 + 1);
data << uint32(error);
data << name;
data << uint8(declinedName != nullptr);
if (declinedName)
{
data << uint8(1);
for (const auto& i : declinedName->name)
data << i;
}
else
data << uint8(0);
SendPacket(data);
}

Expand Down

0 comments on commit d4535ec

Please sign in to comment.