Prevent null auth string comparisons.
This commit is contained in:
parent
324d52bf2b
commit
ff27484527
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user