Skip to content

Commit 4042b59

Browse files
committed
Set CurrentNotch to -1 when NotchCount = 0
1 parent cd42df1 commit 4042b59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Controllers/MSTSBrakeController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public override void InitializeMoving()
6060
{
6161
NotchController.SetValue(0);
6262
if (NotchController.NotchCount() > 0) NotchController.CurrentNotch = 0;
63+
else NotchController.CurrentNotch = -1;
6364
}
6465

6566
public override float Update(float elapsedSeconds)

0 commit comments

Comments
 (0)