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
commit49570edfe97df43654759e9d9e492137c0fe4c2a (patch)
tree4b779bb86f97ebb5f7398c295675a5e7140c1d29 /src/industry_cmd.cpp
parentba24c34f8558369cc0802c92963b40ff5c7b0bc2 (diff)
downloadopenttd-49570edfe97df43654759e9d9e492137c0fe4c2a.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;
}
/**