engine: client: voice: increment sequence before it's passed into LittleShort macro

This commit is contained in:
Alibek Omarov
2025-11-06 20:06:51 +05:00
parent 2094c72c95
commit 955c5570d8
+2 -1
View File
@@ -553,7 +553,8 @@ static uint Voice_GetGSCompressedData( byte *out, uint maxsize, uint *frames )
if( bytes > 0 )
{
*(uint16_t *)( out + size ) = LittleShort( bytes );
*(uint16_t *)( out + size + 2 ) = LittleShort( sequence++ );
sequence++;
*(uint16_t *)( out + size + 2 ) = LittleShort( sequence );
size += bytes + sizeof( uint32_t );
maxsize -= bytes + sizeof( uint32_t );