From 704a75871ae63a5e5d0881043feeaa413a2725b6 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 12 Jan 2008 19:24:58 +0000 Subject: (svn r11820) -Fix: invalidate depot window when removing crashed train --- src/train_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2