mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
fix some undefined/unspecified behaviours in multiplayer games( may help with #299 )
This commit is contained in:
@@ -1842,7 +1842,7 @@ void CVEngineServer::PlaybackTempEntity( IRecipientFilter& filter, float delay,
|
||||
|
||||
newEvent->bits = buffer.GetNumBitsWritten();
|
||||
int size = Bits2Bytes( buffer.GetNumBitsWritten() );
|
||||
newEvent->pData = new byte[size];
|
||||
newEvent->pData = new byte[ALIGN_VALUE(size,4)];
|
||||
Q_memcpy( newEvent->pData, data, size );
|
||||
|
||||
// add to list
|
||||
|
||||
Reference in New Issue
Block a user