From 53d6ae68483f7f9ace0b0bae2275dbf1c0f384d2 Mon Sep 17 00:00:00 2001 From: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com> Date: Tue, 27 Dec 2022 15:59:19 +0300 Subject: [PATCH] Explicitly state header bit count in CNetMsgScriptHelper --- sp/src/game/shared/mapbase/vscript_singletons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sp/src/game/shared/mapbase/vscript_singletons.cpp b/sp/src/game/shared/mapbase/vscript_singletons.cpp index 64dcc592..e313f82f 100644 --- a/sp/src/game/shared/mapbase/vscript_singletons.cpp +++ b/sp/src/game/shared/mapbase/vscript_singletons.cpp @@ -1445,7 +1445,7 @@ void CNetMsgScriptHelper::ReceiveMessage( bf_read &msg ) while ( count-- ) #endif { - int hash = m_MsgIn_()ReadWord(); + int hash = m_MsgIn_()ReadUBitLong( SCRIPT_NETMSG_HEADER_BITS ); #ifdef _DEBUG const char *msgName = GetNetMsgName( hash ); @@ -1514,7 +1514,7 @@ void CNetMsgScriptHelper::Start( const char *msg ) Reset(); #endif - m_MsgOut.WriteWord( Hash( msg ) ); + m_MsgOut.WriteUBitLong( Hash( msg ), SCRIPT_NETMSG_HEADER_BITS ); } #ifdef GAME_DLL