mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-04-22 08:50:48 +00:00
Added nullptr check
This commit is contained in:
parent
986596e0d4
commit
f13d568918
1 changed files with 5 additions and 0 deletions
|
@ -310,6 +310,11 @@ static void FirePrifleBullet( gentity_t* ent, vec3_t start, vec3_t dir )
|
|||
{
|
||||
gentity_t* bolt = G_Spawn();
|
||||
|
||||
if(bolt == NULL) {
|
||||
// TODO Logging
|
||||
return;
|
||||
}
|
||||
|
||||
bolt->classname = "prifle_proj";
|
||||
bolt->nextthink = level.time + 10000;
|
||||
bolt->think = G_FreeEntity;
|
||||
|
|
Loading…
Reference in a new issue