Fix possible crash in ClientKill

This commit is contained in:
mittorn 2017-02-01 18:03:39 +00:00
parent 5dabd5f751
commit 9d7c772f33

View File

@ -187,6 +187,9 @@ void ClientKill( edict_t *pEntity )
CBasePlayer *pl = (CBasePlayer*) CBasePlayer::Instance( pev );
if( !pl )
return;
if ( pl->m_fNextSuicideTime > gpGlobals->time )
return; // prevent suiciding too ofter