mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Fix possible crash in ClientKill
This commit is contained in:
parent
5dabd5f751
commit
9d7c772f33
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user