Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarNetPacketSocket.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-07-27 19:42:24 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-07-27 19:42:24 +1000
commit372921abdeecdf2556cf09f6dba5881a8a694b54 (patch)
treeea1eb364041472a2b71300feeec8f67e13a5bb7b /source/game/StarNetPacketSocket.cpp
parent0ec199b3af68ff3af8248d64e71a76b242d690d9 (diff)
Update StarNetPacketSocket.cpp
oops
Diffstat (limited to 'source/game/StarNetPacketSocket.cpp')
-rw-r--r--source/game/StarNetPacketSocket.cpp2
1 files changed, 1 insertions, 1 deletions
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<PacketPtr> packets) {
outBuffer.write<bool>(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();