Skip to content

Commit db78287

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

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
@@ -2208,10 +2208,7 @@ public EOTArmTwoWayCommand(CommandLog log)
22082208

22092209
public override void Redo()
22102210
{
2211-
if (Receiver?.Train?.EOT != null)
2212-
{
2213-
Receiver.Train.EOT.ArmTwoWay();
2214-
}
2211+
Receiver?.Train?.EOT?.ArmTwoWay();
22152212
}
22162213
}
22172214

0 commit comments

Comments
 (0)