Prevent null auth string comparisons.

This commit is contained in:
Ryan Stecker
2015-01-19 07:48:45 -05:00
committed by Nicholas Hastings
parent 324d52bf2b
commit ff27484527
+7
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;