From 31d1e9c051f6170282f027fe8b040e9ea6f3f143 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 15 Jan 2010 21:00:46 +0000 Subject: (svn r18816) -Fix (r18807): getting the catchment area of oilrigs triggered an assert --- src/airport.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/airport.h') diff --git a/src/airport.h b/src/airport.h index 2ee8d9ff5..20c8c8787 100644 --- a/src/airport.h +++ b/src/airport.h @@ -63,6 +63,7 @@ struct AirportSpec { static AirportSpec *Get(byte type) { + if (type == AT_OILRIG) return &oilrig; assert(type < NUM_AIRPORTS); extern AirportSpec _origin_airport_specs[NUM_AIRPORTS]; return &_origin_airport_specs[type]; @@ -71,6 +72,7 @@ struct AirportSpec { bool IsAvailable() const; static AirportSpec dummy; + static AirportSpec oilrig; }; -- cgit v1.2.3-54-g00ecf