changeset 9855 | de4ab4ed5492 |
parent 9659 | 187142ff9b6c |
child 9921 | 4dfac3c48507 |
--- a/src/ai/default/default.cpp Mon Aug 04 21:51:52 2008 +0000 +++ b/src/ai/default/default.cpp Mon Aug 04 22:31:49 2008 +0000 @@ -3574,6 +3574,7 @@ veh = AiChooseAircraftToBuild(p->player_money, forbidden); if (veh == INVALID_ENGINE) return; + if (GetStationByTile(tile)->Airport()->nof_depots == 0) return; /* XXX - Have the AI pick the hangar terminal in an airport. Eg get airport-type * and offset to the FIRST depot because the AI picks the st->xy tile */