Skip to content

Commit d977b69

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

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
@@ -2191,10 +2191,7 @@ public EOTDisarmCommand(CommandLog log)
21912191

21922192
public override void Redo()
21932193
{
2194-
if (Receiver?.Train?.EOT != null)
2195-
{
2196-
Receiver.Train.EOT.Disarm();
2197-
}
2194+
Receiver?.Train?.EOT?.Disarm();
21982195
}
21992196
}
22002197

0 commit comments

Comments
 (0)