Browse Source

Add null pointer check

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

1
dlls/xen.cpp

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

Loading…
Cancel
Save