From a6b0f0b51a0fbf8a04c9632cc466b603fccda189 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 3 Jul 2009 19:55:07 +0000 Subject: [PATCH] (svn r16731) -Fix [NoAI]: AIDepotList contained wrong tiles for hangars when st->xy != st->airport_tile. --- src/ai/api/ai_depotlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai/api/ai_depotlist.cpp b/src/ai/api/ai_depotlist.cpp index f4cdb1a08e..c53804d046 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])); } } }