Clean xen_ttrigger when no tree

This commit is contained in:
mittorn 2018-10-21 06:27:19 +07:00
parent a45dd7648b
commit 7d68ba8375
1 changed files with 4 additions and 0 deletions

View File

@ -234,8 +234,12 @@ void CXenTreeTrigger::Touch( CBaseEntity *pOther )
{
CBaseEntity *pEntity = CBaseEntity::Instance( pev->owner );
if( pEntity )
{
pEntity->Touch( pOther );
return;
}
}
pev->flags |= FL_KILLME;
}
#define TREE_AE_ATTACK 1