--- a/aircraft_cmd.c Fri Dec 10 15:12:48 2004 +0000
+++ b/aircraft_cmd.c Fri Dec 10 18:16:08 2004 +0000
@@ -267,8 +267,7 @@
}
InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
- _vehicle_sort_dirty[VEHAIRCRAFT] = true; // build aircraft
- InvalidateWindow(WC_AIRCRAFT_LIST, v->owner);
+ RebuildVehicleLists();
InvalidateWindow(WC_COMPANY, v->owner);
}
@@ -299,8 +298,7 @@
static void DoDeleteAircraft(Vehicle *v)
{
DeleteWindowById(WC_VEHICLE_VIEW, v->index);
- _vehicle_sort_dirty[VEHAIRCRAFT] = true; // delete aircraft
- InvalidateWindow(WC_AIRCRAFT_LIST, v->owner);
+ RebuildVehicleLists();
InvalidateWindow(WC_COMPANY, v->owner);
DeleteVehicleChain(v);
}