mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix a seg caused by my changes from last night
This commit is contained in:
parent
014785a9f2
commit
74d3499f74
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue