diff --git a/Processes/ParticleCut/ParticleCut.cc b/Processes/ParticleCut/ParticleCut.cc index 1616f6248740d7b8e6f23a8c31405f57fff16eb8..72a97ee065d654799c7ae72cb4742a0d8d0a1452 100644 --- a/Processes/ParticleCut/ParticleCut.cc +++ b/Processes/ParticleCut/ParticleCut.cc @@ -90,11 +90,8 @@ namespace corsika::process { EProcessReturn ParticleCut::DoSecondaries(corsika::setup::StackView& vS) { auto particle = vS.begin(); while (particle != vS.end()) { - if (checkCutParticle(particle)) { - particle.Delete(); - } else { - ++particle; // next entry in SecondaryView - } + if (checkCutParticle(particle)) { particle.Delete(); } + ++particle; // next entry in SecondaryView } return EProcessReturn::eOk; }