File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Source/Orts.Simulation/Simulation Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1376,7 +1376,9 @@ private Train matchesConsist(List<string> wagonIdList)
1376
1376
return null ;
1377
1377
}
1378
1378
/// <summary>
1379
- /// Finds the train that contains exactly the wagons in the list. Exact order is not required.
1379
+ /// Finds the train that contains the wagons in the list.
1380
+ /// Exact order is not required.
1381
+ /// Some lists may only contain the first and last wagon.
1380
1382
/// </summary>
1381
1383
/// <param name="wagonIdList"></param>
1382
1384
/// <returns>train or null</returns>
@@ -1391,10 +1393,10 @@ private Train matchesConsistNoOrder(List<string> wagonIdList)
1391
1393
{
1392
1394
nWagonListCars ++ ;
1393
1395
}
1394
- }
1395
- if ( nWagonListCars == trainItem . Cars . Count )
1396
- {
1397
- return trainItem ;
1396
+ if ( nWagonListCars == trainItem . Cars . Count )
1397
+ {
1398
+ return trainItem ;
1399
+ }
1398
1400
}
1399
1401
}
1400
1402
You can’t perform that action at this time.
0 commit comments