[raknet] Match ReliabilityLayer::SendBitStream(...)

This commit is contained in:
RD42 2024-08-17 21:26:39 +08:00
parent f307ceee8c
commit f67d8de086

View File

@ -1195,7 +1195,7 @@ void ReliabilityLayer::SendBitStream( SOCKET s, PlayerID playerId, RakNet::BitSt
oldLength = length; oldLength = length;
encryptor.Encrypt( ( unsigned char* ) bitStream->GetData(), length, ( unsigned char* ) bitStream->GetData(), &length ); encryptor.Encrypt( ( unsigned char* ) bitStream->GetData(), length, ( unsigned char* ) bitStream->GetData(), &length );
statistics.encryptionBitsSent = ( length - oldLength ) * 8; statistics.encryptionBitsSent += ( length - oldLength ) * 8;
assert( ( length % 16 ) == 0 ); assert( ( length % 16 ) == 0 );
} }