* Fix #13299: Merge IT_INVALID and INVALID_INDUSTRYTYPE * Codefix: Use NUM_INDUSTRYTILES where it's intended
This commit is contained in:
@@ -214,7 +214,7 @@
|
||||
|
||||
/* static */ IndustryType ScriptIndustry::GetIndustryType(IndustryID industry_id)
|
||||
{
|
||||
if (!IsValidIndustry(industry_id)) return INVALID_INDUSTRYTYPE;
|
||||
if (!IsValidIndustry(industry_id)) return IT_INVALID;
|
||||
|
||||
return ::Industry::Get(industry_id)->type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user