Changeset - r6912:8b1a63da4658
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-06-15 08:05:24
rubidium@openttd.org
(svn r10165) -Fix [FS#874]: crash when trying to get the aircraft movement state of an aircraft going to a just deleted airport.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf_engine.cpp
Show inline comments
 
@@ -245,6 +245,8 @@ enum {
 
static byte MapAircraftMovementState(const Vehicle *v)
 
{
 
	const Station *st = GetStation(v->u.air.targetairport);
 
	if (st->airport_tile == 0) return AMS_TTDP_FLIGHT_TO_TOWER;
 

	
 
	const AirportFTAClass *afc = st->Airport();
 
	uint16 amdflag = afc->MovingData(v->u.air.pos)->flag;
 

	
0 comments (0 inline, 0 general)