diff options
Diffstat (limited to 'src/ai/api/ai_depotlist.cpp')
-rw-r--r-- | src/ai/api/ai_depotlist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_depotlist.cpp b/src/ai/api/ai_depotlist.cpp index 1dc68fb7b..a40c13a31 100644 --- a/src/ai/api/ai_depotlist.cpp +++ b/src/ai/api/ai_depotlist.cpp @@ -31,7 +31,7 @@ AIDepotList::AIDepotList(AITile::TransportType transport_type) if (st->owner == ::_current_company) { const AirportSpec *as = st->GetAirportSpec(); for (uint i = 0; i < as->nof_depots; i++) { - this->AddItem(st->airport_tile + ToTileIndexDiff(as->depot_table[i])); + this->AddItem(st->GetHangarTile(i)); } } } |