Codechange: replace INVALID_X with XID::Invalid() for PoolIDs
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
|
||||
/* static */ IndustryID ScriptIndustry::GetIndustryID(TileIndex tile)
|
||||
{
|
||||
if (!::IsValidTile(tile) || !::IsTileType(tile, MP_INDUSTRY)) return INVALID_INDUSTRY;
|
||||
if (!::IsValidTile(tile) || !::IsTileType(tile, MP_INDUSTRY)) return IndustryID::Invalid();
|
||||
return ::GetIndustryIndex(tile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user