fix server crash on HLTV join

This commit is contained in:
pierow 2023-08-31 00:08:04 -04:00
parent 6ee8db7f9e
commit 98b815da57

View file

@ -1544,7 +1544,10 @@ union float_converter
}
void NetMsg_PlayHUDNotification_Research(entvars_t* const pev, const int flags, const ResearchInfoListType& researching)
{
MESSAGE_BEGIN(MSG_ONE, g_msgPlayHUDNotification, NULL, pev);
if (pev == NULL)
MESSAGE_BEGIN( MSG_SPEC, g_msgPlayHUDNotification);
else
MESSAGE_BEGIN(MSG_ONE, g_msgPlayHUDNotification, NULL, pev);
WRITE_BYTE(flags);
if (flags == 2)
{