mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-11 14:42:05 +08:00
engine: client: voice: increment sequence before it's passed into LittleShort macro
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user