- bugfix for particles when they finish
This commit is contained in:
parent
a4e75417e4
commit
0504ea3b97
|
@ -88,7 +88,7 @@ void ParticleSystem::update() {
|
||||||
|
|
||||||
//maintain alive particles at front of the array
|
//maintain alive particles at front of the array
|
||||||
if(aliveParticleCount > 0) {
|
if(aliveParticleCount > 0) {
|
||||||
particles[i] = particles[aliveParticleCount-1];
|
particles[i] = particles[aliveParticleCount];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user