mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix #193: Comparison is always true compiler warning
This commit is contained in:
parent
9be6eb92f8
commit
3cb1327012
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user