summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-09 20:08:25 +0000
committerrubidium <rubidium@openttd.org>2007-07-09 20:08:25 +0000
commit09eb6623ab6d8750dc08111ecbd3e20fc1bfc06b (patch)
tree12fc144dcff919b030af8acc977d785bd29ebf48 /src/industry_cmd.cpp
parentb876be00646fabe692fbfd2f40b2e4e738fa8627 (diff)
downloadopenttd-09eb6623ab6d8750dc08111ecbd3e20fc1bfc06b.tar.xz
(svn r10494) -Fix (r10490): possible null dereference in some exotic newgrfs.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 9fa957d03..3bc22d45b 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1191,7 +1191,7 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable
if (HASBIT(its->callback_flags, CBM_INDT_SHAPE_CHECK)) {
if (custom_shape_check != NULL) *custom_shape_check = true;
- if (!PerformIndustryTileSlopeCheck(cur_tile, its, it->gfx)) return false;
+ if (!PerformIndustryTileSlopeCheck(cur_tile, its, type, it->gfx)) return false;
} else {
if (ind_behav & INDUSTRYBEH_BUILT_ONWATER) {
/* As soon as the tile is not water, bail out.