summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-12 19:24:58 +0000
committersmatz <smatz@openttd.org>2008-01-12 19:24:58 +0000
commit9c9b7432420e32655465d8513109971ae0a9e224 (patch)
tree034211d397f26df0541e8bff023ec914961f6a61 /src
parentb18b7f6f22b3ade9fee178004140f6f5aeac20ab (diff)
downloadopenttd-9c9b7432420e32655465d8513109971ae0a9e224.tar.xz
(svn r11820) -Fix: invalidate depot window when removing crashed train
Diffstat (limited to 'src')
-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 06c632555..a8fdc8ba1 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -3118,6 +3118,9 @@ static void DeleteLastWagon(Vehicle *v)
DeleteWindowById(WC_VEHICLE_VIEW, v->index);
RebuildVehicleLists();
InvalidateWindow(WC_COMPANY, v->owner);
+ if (v->u.rail.track == TRACK_BIT_DEPOT) {
+ InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
+ }
BeginVehicleMove(v);
EndVehicleMove(v);