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.
2 parents 5d9debb + 36a9921 commit 94da787Copy full SHA for 94da787
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