Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/parton_string/qgsm/src/G4QGSParticipants.cc

    r819 r962  
    262262  std::vector<G4InteractionContent*>::iterator i;
    263263  G4LorentzVector str4Mom;
    264   for(i = theInteractions.begin(); i != theInteractions.end(); i++)   
     264  i = theInteractions.begin();
     265  while ( i != theInteractions.end() )   
    265266  {
    266267    G4InteractionContent* anIniteraction = *i;
     
    304305      } 
    305306      delete *i;
    306       i=theInteractions.erase(i);
    307       i--;
    308     }
     307      i=theInteractions.erase(i);    // i now points to the next interaction
     308    } else {   
     309      i++;
     310    } 
    309311  }
    310312#ifdef debug_G4QGSPart_PSoftColl
Note: See TracChangeset for help on using the changeset viewer.