mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-07 02:09:52 +03:00
fix some undefined/unspecified behaviours in multiplayer games( may help with #299 )
This commit is contained in:
@@ -199,7 +199,7 @@ bool CNetworkStringTableItem::SetUserData( int tick, int length, const void *use
|
||||
|
||||
if ( length > 0 )
|
||||
{
|
||||
m_pUserData = new unsigned char[ length ];
|
||||
m_pUserData = new unsigned char[ALIGN_VALUE( length, 4 )];
|
||||
Q_memcpy( m_pUserData, userData, length );
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user