mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-09 05:24:17 +00:00
Fix null pointer deference
This commit is contained in:
parent
45e13383ff
commit
ed6692cf2a
@ -506,7 +506,10 @@ void Ent_Fire_f( edict_t *player )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
ent = g_engfuncs.pfnPEntityOfEntIndex( i );
|
ent = g_engfuncs.pfnPEntityOfEntIndex( i );
|
||||||
if( ent->serialnumber != atoi( cmd ) )
|
if( ent && ent->serialnumber != atoi( cmd ) )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( !Ent_IsValidEdict( ent ) )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user