Fix #193: Comparison is always true compiler warning

This commit is contained in:
Jonathan G Rennison 2020-09-25 18:21:33 +01:00
parent 9be6eb92f8
commit 3cb1327012

View File

@ -1190,7 +1190,7 @@ int CompanyServiceInterval(const Company *c, VehicleType type)
*/
CompanyID GetDefaultLocalCompany()
{
if (_loaded_local_company >= COMPANY_FIRST && _loaded_local_company < MAX_COMPANIES && Company::IsValidID(_loaded_local_company)) {
if (_loaded_local_company < MAX_COMPANIES && Company::IsValidID(_loaded_local_company)) {
return _loaded_local_company;
}
for (CompanyID i = COMPANY_FIRST; i < MAX_COMPANIES; i++) {