diff options
author | yexo <yexo@openttd.org> | 2010-01-21 18:32:44 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-21 18:32:44 +0000 |
commit | e80f4f20afcc2791994ca895d094b4a3581e5a2b (patch) | |
tree | 023759df6781b56c0a9f2d74b7b5d418aaebcafd /src/newgrf_industrytiles.cpp | |
parent | d04441e3f7add1ef919649e89baf7a9af464e076 (diff) | |
download | openttd-e80f4f20afcc2791994ca895d094b4a3581e5a2b.tar.xz |
(svn r18878) -Fix [NewGRF]: crash when a newgrf used var62 in an industry tile chain when the industry tile was part of an original industry
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-rw-r--r-- | src/newgrf_industrytiles.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index 8d1d05732..86ac36f24 100644 --- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -100,7 +100,7 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl return UINT_MAX; /* Get industry tile ID at offset */ - case 0x62: return GetIndustryIDAtOffset(GetNearbyTile(parameter, tile), inds); + case 0x62: return GetIndustryIDAtOffset(GetNearbyTile(parameter, tile), inds, object->grffile->grfid); } DEBUG(grf, 1, "Unhandled industry tile property 0x%X", variable); |