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
commit704a75871ae63a5e5d0881043feeaa413a2725b6 (patch)
tree034211d397f26df0541e8bff023ec914961f6a61 /src
parent712d4b62590b56ba13d33e50cfb20ece55f25ddd (diff)
downloadopenttd-704a75871ae63a5e5d0881043feeaa413a2725b6.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);