(svn r11820) -Fix: invalidate depot window when removing crashed train

This commit is contained in:
smatz 2008-01-12 19:24:58 +00:00
parent 712d4b6259
commit 704a75871a
1 changed files with 3 additions and 0 deletions

View File

@ -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);