From b0cfde365150750e1d87134e2fa4999bbcbb2016 Mon Sep 17 00:00:00 2001 From: yexo Date: Tue, 8 Nov 2011 17:40:48 +0000 Subject: [PATCH] (svn r23161) -Fix (r23154): don't convert pointer to bool but actually check the grf_version variable --- src/newgrf_airporttiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_airporttiles.cpp b/src/newgrf_airporttiles.cpp index 7d90bd0ddf..5414d57a1c 100644 --- a/src/newgrf_airporttiles.cpp +++ b/src/newgrf_airporttiles.cpp @@ -195,7 +195,7 @@ static uint32 AirportTileGetVariable(const ResolverObject *object, byte variable case 0x44: return GetAnimationFrame(tile); /* Land info of nearby tiles */ - case 0x60: return GetNearbyAirportTileInformation(parameter, tile, st->index, object->grffile); + case 0x60: return GetNearbyAirportTileInformation(parameter, tile, st->index, object->grffile->grf_version >= 8); /* Animation stage of nearby tiles */ case 0x61: