We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b2a8053 + 27ebc35 commit ee9c56dCopy full SHA for ee9c56d
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS/ManualBraking.cs
@@ -128,7 +128,7 @@ public override void Update(float elapsedClockSeconds)
128
SteamBrakeCompensation = 1.0f;
129
130
// Process manual braking on all cars
131
- if (lead != null)
+ if (lead != null && lead.BrakemanBrakeController != null)
132
{
133
BrakemanBrakeSettingValue = lead.BrakemanBrakeController.CurrentValue;
134
}
0 commit comments