summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-07-03 19:55:07 +0000
committeryexo <yexo@openttd.org>2009-07-03 19:55:07 +0000
commita6b0f0b51a0fbf8a04c9632cc466b603fccda189 (patch)
tree09095f338c6d1373592909ec962455b45f4b1bea /src/ai
parentf5d976082495fef56c7ab64548238c4e3110d03c (diff)
downloadopenttd-a6b0f0b51a0fbf8a04c9632cc466b603fccda189.tar.xz
(svn r16731) -Fix [NoAI]: AIDepotList contained wrong tiles for hangars when st->xy != st->airport_tile.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_depotlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_depotlist.cpp b/src/ai/api/ai_depotlist.cpp
index f4cdb1a08..c53804d04 100644
--- a/src/ai/api/ai_depotlist.cpp
+++ b/src/ai/api/ai_depotlist.cpp
@@ -25,7 +25,7 @@ AIDepotList::AIDepotList(AITile::TransportType transport_type)
if (st->owner == ::_current_company) {
const AirportFTAClass *afc = st->Airport();
for (uint i = 0; i < afc->nof_depots; i++) {
- this->AddItem(st->xy + ToTileIndexDiff(afc->airport_depots[i]));
+ this->AddItem(st->airport_tile + ToTileIndexDiff(afc->airport_depots[i]));
}
}
}