Fixed bad caller crash with HookEntityOutput (
bug 4311, r=fyren)
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