diff --git a/source/game/StarNetPacketSocket.cpp b/source/game/StarNetPacketSocket.cpp index 890f788..2dd6f92 100644 --- a/source/game/StarNetPacketSocket.cpp +++ b/source/game/StarNetPacketSocket.cpp @@ -379,8 +379,8 @@ void P2PPacketSocket::sendPackets(List packets) { outBuffer.write(false); outBuffer.writeData(packetBuffer.ptr(), packetBuffer.size()); m_outgoingStats.mix(currentType, packetBuffer.size(), false); + m_outputMessages.append(m_compressionStream.compress(outBuffer.takeData())); } - m_outputMessages.append(m_compressionStream.compress(outBuffer.data())); } else { while (it.hasNext()) { PacketType currentType = it.peekNext()->type();