fix a seg caused by my changes from last night

This commit is contained in:
Bill Currie 2001-10-27 20:52:33 +00:00
parent 014785a9f2
commit 74d3499f74
2 changed files with 4 additions and 2 deletions

View file

@ -67,7 +67,8 @@ R_ClearParticles (void)
for (i = 0; i < r_maxparticles; i++)
particles[i].next = &particles[i + 1];
particles[r_maxparticles - 1].next = NULL;
if (r_maxparticles)
particles[r_maxparticles - 1].next = NULL;
}
void

View file

@ -67,7 +67,8 @@ R_ClearParticles (void)
for (i = 0; i < r_maxparticles; i++)
particles[i].next = &particles[i + 1];
particles[r_maxparticles - 1].next = NULL;
if (r_maxparticles)
particles[r_maxparticles - 1].next = NULL;
}
void