int newCount = 0;
int[] newIndices = new int[m_count];
for (int i = 0; i < m_count; i++) {
int flags = m_flagsBuffer.data[i];
if ((flags & ParticleType.b2_zombieParticle) != 0) {
ParticleDestructionListener destructionListener = m_world.getParticleDestructionListener();
if ((flags & ParticleType.b2_destructionListener) != 0 && destructionListener != null) {
destructionListener.sayGoodbye(i);
}
newIndices[i] = Settings.invalidParticleIndex;
} else {
newIndices[i] = newCount;
if (i != newCount) {