Prevent null auth string comparisons.
This commit is contained in:
parent
324d52bf2b
commit
ff27484527
@ -2003,6 +2003,13 @@ void CPlayer::UpdateAuthIds()
|
|||||||
#else
|
#else
|
||||||
authstr = engine->GetPlayerNetworkIDString(m_pEdict);
|
authstr = engine->GetPlayerNetworkIDString(m_pEdict);
|
||||||
#endif
|
#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)
|
if (m_AuthID.compare(authstr) == 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user