mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-14 08:31:04 +00:00
Added pointer check for values passed by reference to p_client.c->SelectSpawnPoint().
This commit is contained in:
parent
98687a5416
commit
fcfe248915
1 changed files with 4 additions and 2 deletions
|
@ -1474,8 +1474,10 @@ void SelectSpawnPoint (edict_t *ent, vec3_t origin, vec3_t angles, int *style, i
|
|||
}
|
||||
}
|
||||
|
||||
*style = spot->style;
|
||||
*health = spot->health;
|
||||
if (style)
|
||||
*style = spot->style;
|
||||
if (health)
|
||||
*health = spot->health;
|
||||
VectorCopy (spot->s.origin, origin);
|
||||
origin[2] += 9;
|
||||
VectorCopy (spot->s.angles, angles);
|
||||
|
|
Loading…
Reference in a new issue