Fix crash

This commit is contained in:
mittorn 2016-10-03 20:56:14 +00:00
parent 0f94e4e0fc
commit a2fe6a9dad

View File

@ -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 );