You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Viewer.PlayerTrain.TrainType==Train.TRAINTYPE.REMOTE||Viewer.PlayerTrain.TrainType==Train.TRAINTYPE.STATIC,"PlayerTrain.LeadLocomotive must be PlayerLocomotive.");
281
-
varleadLocomotiveCar=Car.Train?.LeadLocomotive;
282
-
if(leadLocomotiveCar==null&&Car.Train?.Cars[0]isMSTSLocomotive)// AI trains have no lead locomotive
283
-
leadLocomotiveCar=Car.Train.Cars[0];
281
+
varleadLocomotiveCar=Car.Train?.LeadLocomotive;// Note: Will return null for AI trains, this is intended behavior
0 commit comments