Prevent null auth string comparisons.

This commit is contained in:
Ryan Stecker 2014-12-24 17:29:38 -06:00 committed by Nicholas Hastings
parent 324d52bf2b
commit ff27484527

View File

@ -2003,6 +2003,13 @@ void CPlayer::UpdateAuthIds()
#else
authstr = engine->GetPlayerNetworkIDString(m_pEdict);
#endif
if (!authstr)
{
// engine doesn't have the client's auth string just yet, we can't do anything
return;
}
if (m_AuthID.compare(authstr) == 0)
{
return;