Fixed bad caller crash with HookEntityOutput (bug 4311, r=fyren)
authorNicholas Hastings <skamonkey@gmail.com>
Sat Mar 20 11:07:45 2010 -0400 (2010-03-20)
changeset 294035b86268c1cc
parent 2939 3d62874b9071
child 2941 cb95ee52ca50
Fixed bad caller crash with HookEntityOutput (bug 4311, r=fyren)
extensions/sdktools/output.cpp
     1.1 --- a/extensions/sdktools/output.cpp	Thu Mar 18 11:35:05 2010 -0400
     1.2 +++ b/extensions/sdktools/output.cpp	Sat Mar 20 11:07:45 2010 -0400
     1.3 @@ -199,6 +199,11 @@
     1.4  
     1.5  void EntityOutputManager::FireEventDetour(void *pOutput, CBaseEntity *pActivator, CBaseEntity *pCaller, float fDelay)
     1.6  {
     1.7 +	if (!pCaller)
     1.8 +	{
     1.9 +		return;
    1.10 +	}
    1.11 +
    1.12  	char sOutput[20];
    1.13  	Q_snprintf(sOutput, sizeof(sOutput), "%x", pOutput);
    1.14