(svn r14343) -Fix [FS#2300]: invalid v->u.air.targetairport could cause crashes at several places when the station pool got smaller

This commit is contained in:
smatz
2008-09-16 15:15:41 +00:00
parent 564aa83835
commit e6afe2ea0c
3 changed files with 69 additions and 31 deletions

View File

@@ -130,4 +130,6 @@ struct Aircraft : public Vehicle {
bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse);
};
Station *GetTargetAirportIfValid(const Vehicle *v);
#endif /* AIRCRAFT_H */