From 860a538adc56a678f640f606692ea7ca00c8d424 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 10 Sep 2009 14:37:55 +0000 Subject: (svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' with GetDepotIndex(tile) --- src/ai/api/ai_order.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api/ai_order.cpp') diff --git a/src/ai/api/ai_order.cpp b/src/ai/api/ai_order.cpp index b45bab956..1e18333fa 100644 --- a/src/ai/api/ai_order.cpp +++ b/src/ai/api/ai_order.cpp @@ -349,7 +349,7 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or order.MakeGoToDepot(::GetStationIndex(destination), odtf, onsf, odaf); } else { if (::IsTileType(destination, MP_STATION)) return false; - order.MakeGoToDepot(::Depot::GetByTile(destination)->index, odtf, onsf, odaf); + order.MakeGoToDepot(::GetDepotIndex(destination), odtf, onsf, odaf); } break; } -- cgit v1.2.3-54-g00ecf