summaryrefslogtreecommitdiff
path: root/src/aircraft.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-16 15:15:41 +0000
committersmatz <smatz@openttd.org>2008-09-16 15:15:41 +0000
commit192d348f78794793ba19cbeb51444f7f1d4e8c03 (patch)
tree8c0cbc3280dbb8a0efcbd528f27f88cc872f845c /src/aircraft.h
parent47d19f7914919d9a1a97aea083f49771264666bf (diff)
downloadopenttd-192d348f78794793ba19cbeb51444f7f1d4e8c03.tar.xz
(svn r14343) -Fix [FS#2300]: invalid v->u.air.targetairport could cause crashes at several places when the station pool got smaller
Diffstat (limited to 'src/aircraft.h')
-rw-r--r--src/aircraft.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/aircraft.h b/src/aircraft.h
index ae0e14e49..2a143db91 100644
--- a/src/aircraft.h
+++ b/src/aircraft.h
@@ -130,4 +130,6 @@ struct Aircraft : public Vehicle {
bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse);
};
+Station *GetTargetAirportIfValid(const Vehicle *v);
+
#endif /* AIRCRAFT_H */