summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/train_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index b61a9116c..96af0ec0c 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -1300,6 +1300,9 @@ CommandCost CmdMoveRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, u
CheckCargoCapacity(dst_head);
}
+ if (src_head != NULL) src_head->First()->MarkDirty();
+ if (dst_head != NULL) dst_head->First()->MarkDirty();
+
/* We are undoubtedly changing something in the depot and train list. */
InvalidateWindowData(WC_VEHICLE_DEPOT, src->tile);
InvalidateWindowClassesData(WC_TRAINS_LIST, 0);