diff src/ai/api/ai_order.cpp @ 14868:9ae8ffb9d4b9 draft

(svn r19464) -Codechange: move GetHangarTile to Airport
author yexo <yexo@openttd.org>
date Fri, 19 Mar 2010 09:58:46 +0000
parents d2be152e6d09
children 3d1ca3435ebb
line wrap: on
line diff
--- a/src/ai/api/ai_order.cpp
+++ b/src/ai/api/ai_order.cpp
@@ -182,7 +182,7 @@
 			/* Aircraft's hangars are referenced by StationID, not DepotID */
 			const Station *st = ::Station::Get(order->GetDestination());
 			if (!st->airport.HasHangar()) return INVALID_TILE;
-			return st->GetHangarTile(0);
+			return st->airport.GetHangarTile(0);
 		}
 
 		case OT_GOTO_STATION: {