mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 04:04:09 +01:00
Codechange: strongly type CompanyID
This commit is contained in:
@@ -75,12 +75,12 @@ static int32_t ClickChangeCompanyCheat(int32_t new_value, int32_t change_directi
|
||||
while ((uint)new_value < Company::GetPoolSize()) {
|
||||
if (Company::IsValidID((CompanyID)new_value)) {
|
||||
SetLocalCompany((CompanyID)new_value);
|
||||
return _local_company;
|
||||
return _local_company.base();
|
||||
}
|
||||
new_value += change_direction;
|
||||
}
|
||||
|
||||
return _local_company;
|
||||
return _local_company.base();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user