We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be6277c commit c31e485Copy full SHA for c31e485
1 file changed
sp/src/game/server/filters.cpp
@@ -134,6 +134,12 @@ void CBaseFilter::InputTestActivator( inputdata_t &inputdata )
134
//-----------------------------------------------------------------------------
135
void CBaseFilter::InputTestEntity( inputdata_t &inputdata )
136
{
137
+ if ( !inputdata.value.Entity() )
138
+ {
139
+ // HACKHACK: Not firing OnFail in this case is intentional for the time being (activator shouldn't be null)
140
+ return;
141
+ }
142
+
143
if ( PassesFilter( inputdata.pCaller, inputdata.value.Entity() ) )
144
145
m_OnPass.FireOutput( inputdata.value.Entity(), m_bPassCallerWhenTested ? inputdata.pCaller : this );
0 commit comments