File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Source/RunActivity/Viewer3D Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ bool UpdateState()
293293 bool newCarIsFirst = ! Car . Lights . IgnoredConditions [ 1 ] && ( locomotiveFlipped ^ locomotiveReverseCab ? Car . Train ? . LastCar : Car . Train ? . FirstCar ) == Car ;
294294 bool newCarIsLast = ! Car . Lights . IgnoredConditions [ 1 ] && ( locomotiveFlipped ^ locomotiveReverseCab ? Car . Train ? . FirstCar : Car . Train ? . LastCar ) == Car ;
295295 // Penalty
296- bool newPenalty = ! Car . Lights . IgnoredConditions [ 2 ] && Car . Train . TrainType != Train . TRAINTYPE . AI
296+ bool newPenalty = ! Car . Lights . IgnoredConditions [ 2 ] && Car . Train != null && Car . Train . TrainType != Train . TRAINTYPE . AI
297297 && leadLocomotive != null && leadLocomotive . TrainBrakeController . EmergencyBraking ;
298298 // Control
299299 bool newCarIsPlayer = ! Car . Lights . IgnoredConditions [ 3 ] && Car . Train != null && ( Car . Train == Viewer . PlayerTrain || Car . Train . TrainType == Train . TRAINTYPE . REMOTE ) ;
You can’t perform that action at this time.
0 commit comments