Shadowing of variables corrected.
[u/mrichter/AliRoot.git] / PYTHIA6 / AliGenPythia.cxx
index ab4c8a7..97159fc 100644 (file)
@@ -646,8 +646,8 @@ void AliGenPythia::Generate()
                        if (pdgD == 91 || pdgD == 92) {
                            Int_t jmin = daughter->GetFirstDaughter() - 1;
                            Int_t jmax = daughter->GetLastDaughter()  - 1;                          
-                           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