summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2013-10-13 11:04:20 +0000
committerplanetmaker <planetmaker@openttd.org>2013-10-13 11:04:20 +0000
commit5bf105d4f2eab74f99cf21a1d3ac8de0392d9d45 (patch)
tree69b7b019adc120797c2d4cc8b557911cef3c58a1 /src/newgrf_industries.cpp
parent871519f75a46c07aab72cbb97df0ea6dd687b3d6 (diff)
downloadopenttd-5bf105d4f2eab74f99cf21a1d3ac8de0392d9d45.tar.xz
(svn r25856) -Codechange: Use Industry::TileBelongsToIndustry in one more place (cirdan, LordAro)
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index 257e27df1..6716d2c03 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -54,7 +54,7 @@ IndustryType MapNewGRFIndustryType(IndustryType grf_type, uint32 grf_id)
*/
uint32 GetIndustryIDAtOffset(TileIndex tile, const Industry *i, uint32 cur_grfid)
{
- if (!IsTileType(tile, MP_INDUSTRY) || GetIndustryIndex(tile) != i->index) {
+ if (!i->TileBelongsToIndustry(tile)) {
/* No industry and/or the tile does not have the same industry as the one we match it with */
return 0xFFFF;
}