Fixed bad caller crash with HookEntityOutput (bug 4311, r=fyren)

This commit is contained in:
Nicholas Hastings 2010-03-20 11:07:45 -04:00
parent a72daff4ac
commit 019e3956f7

View File

@ -199,6 +199,11 @@ void EntityOutputManager::ShutdownFireEventDetour()
void EntityOutputManager::FireEventDetour(void *pOutput, CBaseEntity *pActivator, CBaseEntity *pCaller, float fDelay)
{
if (!pCaller)
{
return;
}
char sOutput[20];
Q_snprintf(sOutput, sizeof(sOutput), "%x", pOutput);