]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverity fix
authorjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Feb 2011 15:06:49 +0000 (15:06 +0000)
committerjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Feb 2011 15:06:49 +0000 (15:06 +0000)
HLT/BASE/util/AliHLTMCEvent.cxx

index 70fee7e07b96f76c4d1faa1504ff62fd4e551b36..a00ce32dc134845c9e766c70997ed2cda5f2232a 100644 (file)
@@ -240,7 +240,7 @@ Int_t AliHLTMCEvent::FillMCTracks( AliStack* stack ) {
   }
 
   // -- Loop over off-line stack and fill local stack
-  for (Int_t iterStack = 0; iterStack < stack->GetNtrack() && !iResult; iterStack++) {
+  for (Int_t iterStack = 0; !iResult &&iterStack < stack->GetNtrack(); iterStack++) {
 
     TParticle *particle = stack->Particle(iterStack);
     if ( !particle) {