summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-05-18 17:55:07 +0000
committerbelugas <belugas@openttd.org>2007-05-18 17:55:07 +0000
commit662bee5b12192167a58423f9d8f5e2ce800f17e2 (patch)
tree4b779bb86f97ebb5f7398c295675a5e7140c1d29 /src/industry_cmd.cpp
parentc8d05162c296a6fdec7a02163b21e2fce2da7272 (diff)
downloadopenttd-662bee5b12192167a58423f9d8f5e2ce800f17e2.tar.xz
(svn r9870) -Codechange: Silence two compiler warnings and give proper type to the "type" member of industry struct
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 1fa12d0fd..c30ed3d4e 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -63,8 +63,8 @@ IndustryType GetIndustryType(TileIndex tile)
{
assert(IsTileType(tile, MP_INDUSTRY));
- const Industry *ind = GetIndustry(GetIndustryIndex(tile));
- return IsValidIndustry(ind) ? ind->type : IT_INVALID;
+ const Industry *ind = GetIndustryByTile(tile);
+ return IsValidIndustry(ind) ? ind->type : (IndustryType)IT_INVALID;
}
/**