SDKTools didn't NULL check after GetMemSig (bug 3504, r=dvander).

This commit is contained in:
Matt Woodrow 2008-12-28 17:52:33 -05:00
parent ea84302e28
commit ba04132142

View File

@ -101,8 +101,8 @@ bool CreateBaseCall(const char *name,
*vaddr = call;
return true;
} else {
void *addr;
if (g_pGameConf->GetMemSig(name, &addr))
void *addr = NULL;
if (g_pGameConf->GetMemSig(name, &addr) && addr != NULL)
{
call = CreateValveCall(addr, vcalltype, retinfo, params, numParams);
if (call)