diff -r af4db21d4d6a -r 63ae31104f07 station_cmd.c --- a/station_cmd.c Tue Aug 22 16:59:51 2006 +0000 +++ b/station_cmd.c Tue Aug 22 17:13:49 2006 +0000 @@ -2399,7 +2399,6 @@ */ static void DeleteStation(Station *st) { - Order order; StationID index; Vehicle *v; st->xy = 0; @@ -2412,10 +2411,8 @@ index = st->index; DeleteWindowById(WC_STATION_VIEW, index); - //Now delete all orders that go to the station - order.type = OT_GOTO_STATION; - order.station = index; - DeleteDestinationFromVehicleOrder(order); + /* Now delete all orders that go to the station */ + RemoveOrderFromAllVehicles(OT_GOTO_STATION, index); //And do the same with aircraft that have the station as a hangar-stop FOR_ALL_VEHICLES(v) {