From 92aef352781f108326247a2fbc44ccded8f230ef Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Wed, 21 Mar 2007 22:08:05 +0000 Subject: * prevent a crash when the particle system fills up --- src/cgame/cg_particles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]; -- cgit