private void compactCriticals(Mech mech){
  for (int loc=0; loc < mech.locations(); loc++) {
    compactCriticals(mech,loc);
  }
}

private void compactCriticals ( Mech mech ) { for ( int loc = 0 ; loc < mech . locations ( ) ; loc ++ ) { compactCriticals ( mech , loc ) ; } }
this function moves all " empty " slots to the end of a location ' s critical list . megamek adds equipment to the first empty slot available in a location . this means that any " holes " ( empty slots not at the end of a location ) , will cause the file crits and megamek ' s crits to become out of sync .
