diff --git a/MC/config/PWGHF/external/generator/generator_pythia8_embed_hf.C b/MC/config/PWGHF/external/generator/generator_pythia8_embed_hf.C index f04f5f13f..8ce738c72 100644 --- a/MC/config/PWGHF/external/generator/generator_pythia8_embed_hf.C +++ b/MC/config/PWGHF/external/generator/generator_pythia8_embed_hf.C @@ -86,7 +86,7 @@ Bool_t importParticles() override /// copy the particles from the HF event in the particle stack auto particlesHfEvent = mGeneratorEvHF->getParticles(); - for(int iPart=0; iPart<=particlesHfEvent.size(); iPart++) { + for(int iPart=0; iPart