summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index fe8f28b5d..0f77c2aa5 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -1487,6 +1487,10 @@ static void ReverseTrainSwapVeh(Train *v, int l, int r)
UpdateStatusAfterSwap(a);
UpdateStatusAfterSwap(b);
} else {
+ /* Swap GVF_GOINGUP_BIT/GVF_GOINGDOWN_BIT.
+ * This is a little bit redundant way, a->gv_flags will
+ * be (re)set twice, but it reduces code duplication */
+ SwapTrainFlags(&a->gv_flags, &a->gv_flags);
UpdateStatusAfterSwap(a);
}