diff options
author | rubidium <rubidium@openttd.org> | 2009-09-10 14:37:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-10 14:37:55 +0000 |
commit | 860a538adc56a678f640f606692ea7ca00c8d424 (patch) | |
tree | 70ac11ef8b475179092b2a435fa768d761bcc3b5 /src/ai/api/ai_order.cpp | |
parent | 751ea62f442f0a8b1623e3df0c0ac5971f776d40 (diff) | |
download | openttd-860a538adc56a678f640f606692ea7ca00c8d424.tar.xz |
(svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' with GetDepotIndex(tile)
Diffstat (limited to 'src/ai/api/ai_order.cpp')
-rw-r--r-- | src/ai/api/ai_order.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |