Fix more warnings
This commit is contained in:
parent
6665ea4a49
commit
7277d8d6e7
3 changed files with 8 additions and 4 deletions
|
@ -368,10 +368,14 @@ void RespawnItem( gentity_t *ent ) {
|
|||
|
||||
choice = rand() % count;
|
||||
|
||||
for (count = 0, ent = master; count < choice; ent = ent->teamchain, count++)
|
||||
for (count = 0, ent = master; ent && count < choice; ent = ent->teamchain, count++)
|
||||
;
|
||||
}
|
||||
|
||||
if (!ent) {
|
||||
return;
|
||||
}
|
||||
|
||||
ent->r.contents = CONTENTS_TRIGGER;
|
||||
ent->s.eFlags &= ~EF_NODRAW;
|
||||
ent->r.svFlags &= ~SVF_NOCLIENT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue