Fixed NULL-deref in entity handling code.
This commit is contained in:
parent
09668c972e
commit
d7b64c18c2
@ -119,7 +119,7 @@ bool IndexToAThings(cell_t num, CBaseEntity **pEntData, edict_t **pEdictData)
|
||||
if (pEdictData)
|
||||
{
|
||||
edict_t *pEdict = ::BaseEntityToEdict(pEntity);
|
||||
if (pEdict->IsFree())
|
||||
if (!pEdict || pEdict->IsFree())
|
||||
{
|
||||
pEdict = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user