mirror of https://github.com/FWGS/hlsdk-xash3d
Add null pointer check
This commit is contained in:
parent
7180dfb4d7
commit
a45dd7648b
|
@ -233,7 +233,8 @@ void CXenTreeTrigger::Touch( CBaseEntity *pOther )
|
||||||
if( pev->owner )
|
if( pev->owner )
|
||||||
{
|
{
|
||||||
CBaseEntity *pEntity = CBaseEntity::Instance( pev->owner );
|
CBaseEntity *pEntity = CBaseEntity::Instance( pev->owner );
|
||||||
pEntity->Touch( pOther );
|
if( pEntity )
|
||||||
|
pEntity->Touch( pOther );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue