mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 14:55:30 +03:00
Fixed crash from TestEntity on filters
This commit is contained in:
parent
be6277c2c8
commit
c31e48591f
@ -134,6 +134,12 @@ void CBaseFilter::InputTestActivator( inputdata_t &inputdata )
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void CBaseFilter::InputTestEntity( inputdata_t &inputdata )
|
void CBaseFilter::InputTestEntity( inputdata_t &inputdata )
|
||||||
{
|
{
|
||||||
|
if ( !inputdata.value.Entity() )
|
||||||
|
{
|
||||||
|
// HACKHACK: Not firing OnFail in this case is intentional for the time being (activator shouldn't be null)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( PassesFilter( inputdata.pCaller, inputdata.value.Entity() ) )
|
if ( PassesFilter( inputdata.pCaller, inputdata.value.Entity() ) )
|
||||||
{
|
{
|
||||||
m_OnPass.FireOutput( inputdata.value.Entity(), m_bPassCallerWhenTested ? inputdata.pCaller : this );
|
m_OnPass.FireOutput( inputdata.value.Entity(), m_bPassCallerWhenTested ? inputdata.pCaller : this );
|
||||||
|
Loading…
Reference in New Issue
Block a user