Coverity corrections.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 23 Jan 2011 20:15:23 +0000 (20:15 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 23 Jan 2011 20:15:23 +0000 (20:15 +0000)
THijing/AliGenBeamGasNew.cxx

index 3c8560a..992abcb 100644 (file)
@@ -229,8 +229,8 @@ void AliGenBeamGasNew::Generate()
       entry = (AliGenCocktailEntry*) fEntries->At(i);
       entry->SetFirst(lastpart);
       gen = entry->Generator();
-      entry->Generator()->SetVertex(fVertex.At(0), fVertex.At(1), fVertex.At(2));
-      entry->Generator()->Generate();
+      gen->SetVertex(fVertex.At(0), fVertex.At(1), fVertex.At(2));
+      gen->Generate();
       entry->SetLast(partArray->GetEntriesFast());
     }