diff options
author | rubidium <rubidium@openttd.org> | 2008-04-06 14:50:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-06 14:50:47 +0000 |
commit | 5d8e3adcccda4b89b03c925c5d061621df2e5e10 (patch) | |
tree | 691b09a90b2ae4916b0dfff53b0b0572849a8e64 /src | |
parent | aaa1b0744a423518549a6b452c7786612659f7a5 (diff) | |
download | openttd-5d8e3adcccda4b89b03c925c5d061621df2e5e10.tar.xz |
(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.
Diffstat (limited to 'src')
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index ed5106c1f..b746835fb 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -710,7 +710,7 @@ static void CheckIfAircraftNeedsService(Vehicle *v) 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(); |