From 662bee5b12192167a58423f9d8f5e2ce800f17e2 Mon Sep 17 00:00:00 2001 From: belugas Date: Fri, 18 May 2007 17:55:07 +0000 Subject: (svn r9870) -Codechange: Silence two compiler warnings and give proper type to the "type" member of industry struct --- src/industry_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/industry_cmd.cpp') 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; } /** -- cgit v1.2.3-70-g09d2