forked from mirror/OpenTTD
(svn r9870) -Codechange: Silence two compiler warnings and give proper type to the "type" member of industry struct
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user