Skip to content

Commit 80f6486

Browse files
CsantuccicesarBLG
andauthored
Update Source/Orts.Simulation/Common/Commands.cs
Co-authored-by: César Benito Lamata <[email protected]>
1 parent db78287 commit 80f6486

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Source/Orts.Simulation/Common/Commands.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,10 +2225,7 @@ public EOTEmergencyBrakeCommand(CommandLog log, bool toState)
22252225

22262226
public override void Redo()
22272227
{
2228-
if (Receiver?.Train?.EOT != null)
2229-
{
2230-
Receiver.Train.EOT.EmergencyBrake(ToState);
2231-
}
2228+
Receiver?.Train?.EOT?.EmergencyBrake(ToState);
22322229
}
22332230
}
22342231

0 commit comments

Comments
 (0)