(svn r19464) -Codechange: move GetHangarTile to Airport

This commit is contained in:
yexo
2010-03-19 09:58:46 +00:00
parent 79909cedee
commit 455bb65282
6 changed files with 13 additions and 13 deletions

View File

@@ -397,7 +397,7 @@ byte GetVehiclePosOnBuild(TileIndex hangar_tile)
* layout for #th position of depot. Since layout must start with a listing
* of all depots, it is simple */
for (uint i = 0;; i++) {
if (st->GetHangarTile(i) == hangar_tile) {
if (st->airport.GetHangarTile(i) == hangar_tile) {
assert(apc->layout[i].heading == HANGAR);
return apc->layout[i].position;
}