Changeset - r9855:7cff0ec982fd
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-08-04 22:31:49
rubidium@openttd.org
(svn r13999) -Fix [FS#2190]: crash when the AI tries to find the depot of an airport that doesn't have a depot.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/ai/default/default.cpp
Show inline comments
 
@@ -3574,6 +3574,7 @@ static void AiStateBuildAircraftVehicles
 

	
 
	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 */
0 comments (0 inline, 0 general)