engine: client: voice: fix typo, sequence must be incremented after it's written to the buffer

This commit is contained in:
Alibek Omarov
2025-11-09 02:55:22 +05:00
parent 5151f9559b
commit d366e04682

View File

@@ -553,8 +553,8 @@ static uint Voice_GetGSCompressedData( byte *out, uint maxsize, uint *frames )
if( bytes > 0 )
{
*(uint16_t *)( out + size ) = LittleShort( bytes );
sequence++;
*(uint16_t *)( out + size + 2 ) = LittleShort( sequence );
sequence++;
size += bytes + sizeof( uint32_t );
maxsize -= bytes + sizeof( uint32_t );