mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-27 07:04:16 +00:00
Fix crash
This commit is contained in:
parent
0f94e4e0fc
commit
a2fe6a9dad
@ -4640,7 +4640,7 @@ void CRevertSaved::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE
|
||||
{
|
||||
if( !mp_coop.value )
|
||||
UTIL_ScreenFadeAll( pev->rendercolor, Duration(), HoldTime(), pev->renderamt, FFADE_OUT );
|
||||
else if( pActivator->IsPlayer() )
|
||||
else if( pActivator && pActivator->IsPlayer() )
|
||||
pActivator->TakeDamage( pev, pev, 3000, DMG_CRUSH );
|
||||
pev->nextthink = gpGlobals->time + MessageTime();
|
||||
SetThink( &CRevertSaved::MessageThink );
|
||||
|
Loading…
x
Reference in New Issue
Block a user