Changeset - r23567:b1a6d3e60ba8
[Not reviewed]
master
0 1 0
glx22 - 6 years ago 2019-03-30 21:12:25
glx22@users.noreply.github.com
Fix #7433: don't use AirportSpec substitute if it's not set (#7435)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf_airport.cpp
Show inline comments
 
@@ -100,6 +100,7 @@ AirportSpec AirportSpec::specs[NUM_AIRPO
 
	assert(type < lengthof(AirportSpec::specs));
 
	const AirportSpec *as = &AirportSpec::specs[type];
 
	if (type >= NEW_AIRPORT_OFFSET && !as->enabled) {
 
		if (_airport_mngr.GetGRFID(type) == 0) return as;
 
		byte subst_id = _airport_mngr.GetSubstituteID(type);
 
		if (subst_id == AT_INVALID) return as;
 
		as = &AirportSpec::specs[subst_id];
0 comments (0 inline, 0 general)