summaryrefslogtreecommitdiff
path: root/src/vehicle_cmd.cpp
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-02-10 08:43:54 +0000
committerGitHub <noreply@github.com>2019-02-10 08:43:54 +0000
commitd242875d270e29f198cc62508b338f8949bf3404 (patch)
tree331272647b78fb37fddcf50d437c419d7f7422a2 /src/vehicle_cmd.cpp
parent6e211908588ab5272336d0d2db3bbb4020f7004f (diff)
downloadopenttd-d242875d270e29f198cc62508b338f8949bf3404.tar.xz
Fix #7197: Invalidate depot buttons when necessary. (#7212)
Diffstat (limited to 'src/vehicle_cmd.cpp')
-rw-r--r--src/vehicle_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp
index 9f8e03887..8284511dd 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -585,6 +585,7 @@ CommandCost CmdStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1,
SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, WID_VV_START_STOP);
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
SetWindowClassesDirty(GetWindowClassForVehicleType(v->type));
+ InvalidateWindowData(WC_VEHICLE_VIEW, v->index);
}
return CommandCost();
}