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

pull/155/head
smatz 17 years ago
parent b18b7f6f22
commit 9c9b743242

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

Loading…
Cancel
Save