From d4535ecf66020f46dff574661abd4f6dce2d7282 Mon Sep 17 00:00:00 2001 From: killerwife Date: Sun, 21 Jul 2024 13:32:38 +0200 Subject: [PATCH] Minor codestyle change for SMSG_PET_NAME_INVALID --- src/game/Entities/PetHandler.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/game/Entities/PetHandler.cpp b/src/game/Entities/PetHandler.cpp index 1fd66a69a41..a7eed920cd2 100644 --- a/src/game/Entities/PetHandler.cpp +++ b/src/game/Entities/PetHandler.cpp @@ -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); }