Fixed outputname null pointer crash in sdktools (bug 4422, r=fyren)
This commit is contained in:
parent
97ab5dd1b5
commit
9a140ff93f
@ -217,6 +217,11 @@ void EntityOutputManager::FireEventDetour(void *pOutput, CBaseEntity *pActivator
|
||||
{
|
||||
const char *classname = GetEntityClassname(pCaller);
|
||||
const char *outputname = FindOutputName(pOutput, pCaller);
|
||||
|
||||
if (!outputname)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
pOutputName = FindOutputPointer(classname, outputname, false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user