mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: voice: fix typo, sequence must be incremented after it's written to the buffer
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user