From edc7c6a9a038e38229281b27b70d779e2e5c4529 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 17 Aug 2024 21:27:01 +0800 Subject: [PATCH] [raknet] Match `ReliabilityLayer::Send(...)` --- raknet/ReliabilityLayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raknet/ReliabilityLayer.cpp b/raknet/ReliabilityLayer.cpp index f4bb186..25f152a 100644 --- a/raknet/ReliabilityLayer.cpp +++ b/raknet/ReliabilityLayer.cpp @@ -890,7 +890,7 @@ bool ReliabilityLayer::Send( char *data, int numberOfBitsToSend, PacketPriority int maxDataSize = MTUSize - UDP_HEADER_SIZE - headerLength; if ( encryptor.IsKeySet() ) - maxDataSize -= 16; // Extra data for the encryptor + maxDataSize -= 8; // Extra data for the encryptor bool splitPacket = numberOfBytesToSend > maxDataSize;