From 5bf105d4f2eab74f99cf21a1d3ac8de0392d9d45 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Sun, 13 Oct 2013 11:04:20 +0000 Subject: [PATCH] (svn r25856) -Codechange: Use Industry::TileBelongsToIndustry in one more place (cirdan, LordAro) --- src/newgrf_industries.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 257e27df1f..6716d2c039 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; }