Fixed bad caller crash with HookEntityOutput (bug 4311, r=fyren)
This commit is contained in:
parent
a72daff4ac
commit
019e3956f7
@ -199,6 +199,11 @@ void EntityOutputManager::ShutdownFireEventDetour()
|
|||||||
|
|
||||||
void EntityOutputManager::FireEventDetour(void *pOutput, CBaseEntity *pActivator, CBaseEntity *pCaller, float fDelay)
|
void EntityOutputManager::FireEventDetour(void *pOutput, CBaseEntity *pActivator, CBaseEntity *pCaller, float fDelay)
|
||||||
{
|
{
|
||||||
|
if (!pCaller)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
char sOutput[20];
|
char sOutput[20];
|
||||||
Q_snprintf(sOutput, sizeof(sOutput), "%x", pOutput);
|
Q_snprintf(sOutput, sizeof(sOutput), "%x", pOutput);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user