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 81b11f7Copy full SHA for 81b11f7
Source/Orts.Simulation/Simulation/AIs/AI.cs
@@ -1408,6 +1408,12 @@ public class StartTrains : LinkedList<AITrain>
1408
1409
public void InsertTrain(AITrain thisTrain)
1410
{
1411
+ if (thisTrain.StartTime == null)
1412
+ {
1413
+ Trace.TraceInformation("Train : " + thisTrain.Name + " : missing start time, train not included");
1414
+ return;
1415
+ }
1416
+
1417
if (this.Count == 0)
1418
1419
this.AddFirst(thisTrain);
0 commit comments