Shadowing of variables corrected.
[u/mrichter/AliRoot.git] / PYTHIA6 / AliGenPythiaPlus.cxx
index d0dd9d7..90e275e 100644 (file)
@@ -623,8 +623,8 @@ void AliGenPythiaPlus::Generate()
                            Int_t jmin = (fPythia->Version() == 6) ? (daughter->GetFirstDaughter() - 1) : (daughter->GetFirstDaughter());
                            Int_t jmax = (fPythia->Version() == 6) ? (daughter->GetLastDaughter() - 1)  : (daughter->GetLastDaughter());
 
-                           for (Int_t j = jmin; j <= jmax; j++)
-                               ((TParticle *) fParticles.At(j))->SetFirstMother(i+1);
+                           for (Int_t jp = jmin; jp <= jmax; jp++)
+                               ((TParticle *) fParticles.At(jp))->SetFirstMother(i+1);
                        } // is string or cluster
                    } // has daughter
                } // heavy quark