Browse Source

Add null pointer check

gravgun
mittorn 6 years ago
parent
commit
a45dd7648b
  1. 3
      dlls/xen.cpp

3
dlls/xen.cpp

@ -233,7 +233,8 @@ void CXenTreeTrigger::Touch( CBaseEntity *pOther ) @@ -233,7 +233,8 @@ void CXenTreeTrigger::Touch( CBaseEntity *pOther )
if( pev->owner )
{
CBaseEntity *pEntity = CBaseEntity::Instance( pev->owner );
pEntity->Touch( pOther );
if( pEntity )
pEntity->Touch( pOther );
}
}

Loading…
Cancel
Save