We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d36c372 commit 906f204Copy full SHA for 906f204
Source/Orts.Simulation/Simulation/RollingStocks/TrainCar.cs
@@ -2915,7 +2915,8 @@ public void SetUpWheels()
2915
SetUpWheelsArticulation(articFront, articRear);
2916
2917
// Other calculations require axles to be sorted based on their Z-offset
2918
- WheelAxles.Sort(WheelAxles[0]);
+ if (WheelAxles.Count > 0)
2919
+ WheelAxles.Sort(WheelAxles[0]);
2920
2921
// After all processing is complete, check if the car can have its position calculated
2922
// using the position of the axles, which is indicated by the 'WheelAxlesLoaded' flag.
0 commit comments