From 228357224360e426d1f791482f7299f08241be9b Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Mon, 30 Oct 2023 22:01:36 +0100 Subject: [PATCH] Core/Packets: use the reserve instead of resize in PartyCommandResult packet ref #428 --- src/server/game/Server/Packets/PartyPackets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Server/Packets/PartyPackets.cpp b/src/server/game/Server/Packets/PartyPackets.cpp index 841ca66bd9..26f4240d77 100644 --- a/src/server/game/Server/Packets/PartyPackets.cpp +++ b/src/server/game/Server/Packets/PartyPackets.cpp @@ -319,7 +319,7 @@ void WorldPackets::Party::SetEveryoneIsAssistant::Read() WorldPacket const* WorldPackets::Party::PartyCommandResult::Write() { - _worldPacket.resize(4 + Name.length() + 4 + 4 + 8); + _worldPacket.reserve(4 + Name.length() + 4 + 4 + 8); _worldPacket << uint32(Command); _worldPacket << Name;