Explicitly state header bit count in CNetMsgScriptHelper

This commit is contained in:
samisalreadytaken 2022-12-27 15:59:19 +03:00
parent 4a77eb2a0d
commit 53d6ae6848

View File

@ -1445,7 +1445,7 @@ void CNetMsgScriptHelper::ReceiveMessage( bf_read &msg )
while ( count-- ) while ( count-- )
#endif #endif
{ {
int hash = m_MsgIn_()ReadWord(); int hash = m_MsgIn_()ReadUBitLong( SCRIPT_NETMSG_HEADER_BITS );
#ifdef _DEBUG #ifdef _DEBUG
const char *msgName = GetNetMsgName( hash ); const char *msgName = GetNetMsgName( hash );
@ -1514,7 +1514,7 @@ void CNetMsgScriptHelper::Start( const char *msg )
Reset(); Reset();
#endif #endif
m_MsgOut.WriteWord( Hash( msg ) ); m_MsgOut.WriteUBitLong( Hash( msg ), SCRIPT_NETMSG_HEADER_BITS );
} }
#ifdef GAME_DLL #ifdef GAME_DLL