mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
warning fixes
GameSetup.cpp: add support for new internal/public mod layout This was SVN commit r6393.
This commit is contained in:
@@ -67,7 +67,7 @@ u8* CNetMessage::Serialize( u8* pBuffer ) const
|
||||
|
||||
// Serialize message type and its size
|
||||
*( ( NetMessageType* )pBuffer ) = m_Type;
|
||||
*( ( uint* )( pBuffer + sizeof( NetMessageType ) ) ) = GetSerializedLength();
|
||||
*( ( size_t* )( pBuffer + sizeof( NetMessageType ) ) ) = GetSerializedLength();
|
||||
|
||||
return pBuffer + sizeof( NetMessageType ) + sizeof( uint );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user