summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2007-03-21 22:08:05 +0000
committerTony J. White <tjw@tjw.org>2007-03-21 22:08:05 +0000
commit92aef352781f108326247a2fbc44ccded8f230ef (patch)
treed3d84d30143ef4ce9fc35571d2250d12f62f7702 /src
parent426e5df1d31265646f193c5f345efcdd6fc93779 (diff)
* prevent a crash when the particle system fills up
Diffstat (limited to 'src')
-rw-r--r--src/cgame/cg_particles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgame/cg_particles.c b/src/cgame/cg_particles.c
index 9be34bd9..eacb84c5 100644
--- a/src/cgame/cg_particles.c
+++ b/src/cgame/cg_particles.c
@@ -138,7 +138,7 @@ static particle_t *CG_SpawnNewParticle( baseParticle_t *bp, particleEjector_t *p
vec3_t attachmentPoint, attachmentVelocity;
vec3_t transform[ 3 ];
- for( i = 0; i < MAX_PARTICLES; i++ )
+ for( i = 0; i < MAX_PARTICLES - 1 ; i++ )
{
p = &particles[ i ];