summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 2f59fb314..57dff8b87 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1609,7 +1609,7 @@ static void ReverseTrainDirection(Vehicle *v)
}
if (flags & DC_EXEC) {
- v->u.rail.flags ^= 1 << VRF_REVERSE_DIRECTION;
+ TOGGLEBIT(v->u.rail.flags, VRF_REVERSE_DIRECTION);
}
} else {
//turn the whole train around