diff options
author | PeterN <peter@fuzzle.org> | 2019-02-10 08:43:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-10 08:43:54 +0000 |
commit | d242875d270e29f198cc62508b338f8949bf3404 (patch) | |
tree | 331272647b78fb37fddcf50d437c419d7f7422a2 /src/vehicle_cmd.cpp | |
parent | 6e211908588ab5272336d0d2db3bbb4020f7004f (diff) | |
download | openttd-d242875d270e29f198cc62508b338f8949bf3404.tar.xz |
Fix #7197: Invalidate depot buttons when necessary. (#7212)
Diffstat (limited to 'src/vehicle_cmd.cpp')
-rw-r--r-- | src/vehicle_cmd.cpp | 1 |
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(); } |