From 0504ea3b973d596f4c68a21b2b6d66f886a1740d Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 27 Aug 2010 03:06:28 +0000 Subject: [PATCH] - bugfix for particles when they finish --- source/shared_lib/sources/graphics/particle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index 75dfbd22..f5b069b9 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -88,7 +88,7 @@ void ParticleSystem::update() { //maintain alive particles at front of the array if(aliveParticleCount > 0) { - particles[i] = particles[aliveParticleCount-1]; + particles[i] = particles[aliveParticleCount]; } } }