mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- bugfix for particles when they finish
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user