summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-09 20:45:40 +0000
committerrubidium <rubidium@openttd.org>2011-02-09 20:45:40 +0000
commitdda7b60a57344183e7db77ba050c97173a4605fc (patch)
tree47b6d7c63d96a33894b59f8db39e9b76a95d0b02 /src
parent15514a3011c6563a39a7ce0a1ead561fd5b0784f (diff)
downloadopenttd-dda7b60a57344183e7db77ba050c97173a4605fc.tar.xz
(svn r22044) -Fix [FS#4493]: update the consist cache when a part of a train is flipped in the depot
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index fd0abdc28..754ae9198 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -1807,6 +1807,7 @@ CommandCost CmdReverseTrainDirection(TileIndex tile, DoCommandFlag flags, uint32
if (flags & DC_EXEC) {
ToggleBit(v->flags, VRF_REVERSE_DIRECTION);
+ front->ConsistChanged(false);
SetWindowDirty(WC_VEHICLE_DEPOT, front->tile);
SetWindowDirty(WC_VEHICLE_DETAILS, front->index);
SetWindowDirty(WC_VEHICLE_VIEW, front->index);