From a6b0f0b51a0fbf8a04c9632cc466b603fccda189 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 3 Jul 2009 19:55:07 +0000 Subject: (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(-) (limited to 'src/ai') 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])); } } } -- cgit v1.2.3-70-g09d2