summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-11-08 17:40:48 +0000
committeryexo <yexo@openttd.org>2011-11-08 17:40:48 +0000
commit4d2ca18ee1f321a7cb3550494d52cca9fedad9e0 (patch)
tree75ce77c69c069d86f2ff5db7487102f1ea583d17 /src
parent6a272233b363369909888b273a210f6fc0c48347 (diff)
downloadopenttd-4d2ca18ee1f321a7cb3550494d52cca9fedad9e0.tar.xz
(svn r23161) -Fix (r23154): don't convert pointer to bool but actually check the grf_version variable
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_airporttiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_airporttiles.cpp b/src/newgrf_airporttiles.cpp
index 7d90bd0dd..5414d57a1 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: