summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-08 18:53:25 +0000
committerrubidium <rubidium@openttd.org>2008-04-08 18:53:25 +0000
commitc1e6cdbef7a663f152bb201bd8f727c80d7742e7 (patch)
tree88126f7e4e6edb090b0494e1b00c77004bea49b7 /src
parent49a515f210851b87baac5c972b98c7ea3c1a273c (diff)
downloadopenttd-c1e6cdbef7a663f152bb201bd8f727c80d7742e7.tar.xz
(svn r12631) -Fix [FS#1911]: sometimes aircraft couldn't find their way to their depot.
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 4a94f95b0..83d452b12 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -714,7 +714,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(0, ODTFB_SERVICE);
+ v->current_order.MakeGoToDepot(st->index, ODTFB_SERVICE);
InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
} else if (v->current_order.IsType(OT_GOTO_DEPOT)) {
v->current_order.MakeDummy();