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 3ffb9bc commit 36a9921Copy full SHA for 36a9921
Source/Orts.Simulation/Simulation/RollingStocks/TrainCar.cs
@@ -1768,7 +1768,7 @@ public string GetCurveDirection()
1768
public virtual void UpdateCurveSpeedLimit()
1769
{
1770
float s = AbsSpeedMpS; // speed of train
1771
- var train = Simulator.PlayerLocomotive.Train;//Debrief Eval
+ var train = Simulator.PlayerLocomotive != null ? Simulator.PlayerLocomotive.Train : null;//Debrief Eval (timetable train can exist without engine)
1772
1773
// get curve radius
1774
0 commit comments