Add early-exit in entity output detour if entity has no classname.

This commit is contained in:
Nicholas Hastings 2014-06-19 00:33:54 -04:00
parent 9af7eefe07
commit e95309a603

View File

@ -116,8 +116,12 @@ void EntityOutputManager::FireEventDetour(void *pOutput, CBaseEntity *pActivator
if ((fastLookup = EntityOutputs->Retrieve(sOutput, (void **)&pOutputName)) == false)
{
const char *classname = GetEntityClassname(pCaller);
const char *outputname = FindOutputName(pOutput, pCaller);
if (!classname)
{
return;
}
const char *outputname = FindOutputName(pOutput, pCaller);
if (!outputname)
{
return;