From a2fe6a9dadf98ef705bfda4088f6755ebec14d37 Mon Sep 17 00:00:00 2001 From: mittorn Date: Mon, 3 Oct 2016 20:56:14 +0000 Subject: [PATCH] Fix crash --- dlls/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/player.cpp b/dlls/player.cpp index 3961356b..6bed4bf7 100644 --- a/dlls/player.cpp +++ b/dlls/player.cpp @@ -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 );