Browse Source

Fix crash

hlzbot-dirty
mittorn 8 years ago
parent
commit
a2fe6a9dad
  1. 2
      dlls/player.cpp

2
dlls/player.cpp

@ -4640,7 +4640,7 @@ void CRevertSaved::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE
{ {
if( !mp_coop.value ) if( !mp_coop.value )
UTIL_ScreenFadeAll( pev->rendercolor, Duration(), HoldTime(), pev->renderamt, FFADE_OUT ); 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 ); pActivator->TakeDamage( pev, pev, 3000, DMG_CRUSH );
pev->nextthink = gpGlobals->time + MessageTime(); pev->nextthink = gpGlobals->time + MessageTime();
SetThink( &CRevertSaved::MessageThink ); SetThink( &CRevertSaved::MessageThink );

Loading…
Cancel
Save