# HG changeset patch # User rubidium # Date 1207493447 0 # Node ID ed3fb21d71c6f8e68533e1f7ab8a9dafe5f8b099 # Parent 4a72a01136fc82827153804e966fb9da259a5f68 (svn r12592) -Fix (r12580): aircraft's go-to-depot handling is a mess, which assumes destination to be a station even when it did not set a destination yet. diff -r 4a72a01136fc -r ed3fb21d71c6 src/aircraft_cmd.cpp --- a/src/aircraft_cmd.cpp Sun Apr 06 14:50:37 2008 +0000 +++ b/src/aircraft_cmd.cpp Sun Apr 06 14:50:47 2008 +0000 @@ -710,7 +710,7 @@ if (st->IsValid() && st->airport_tile != 0 && st->Airport()->terminals != NULL) { // printf("targetairport = %d, st->index = %d\n", v->u.air.targetairport, st->index); // v->u.air.targetairport = st->index; - v->current_order.MakeGoToDepot(INVALID_STATION, false); + v->current_order.MakeGoToDepot(0, false); InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH); } else if (v->current_order.IsType(OT_GOTO_DEPOT)) { v->current_order.MakeDummy();