Browse Source

Fix crash

gravgun
mittorn 8 years ago
parent
commit
c129d99721
  1. 2
      dlls/gateofbabylon.cpp

2
dlls/gateofbabylon.cpp

@ -415,7 +415,7 @@ void CGateOfBabylonSpawner::FollowPlayerThink( void ) @@ -415,7 +415,7 @@ void CGateOfBabylonSpawner::FollowPlayerThink( void )
if( !m_pGates )
return; // wait for gates
if( !m_pGates->m_pPlayer || m_pGates->m_pPlayer->pev->deadflag > DEAD_NO )
if( !m_pGates->m_pPlayer || !m_pGates->m_pPlayer->m_pActiveItem || m_pGates->m_pPlayer->pev->deadflag > DEAD_NO )
{
SetThink( &CBaseEntity::SUB_Remove );
return;

Loading…
Cancel
Save