mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codechange: use prefix operator++ for CompanyID iterations
This commit is contained in:
+1
-1
@@ -1337,7 +1337,7 @@ CompanyID GetFirstPlayableCompanyID()
|
||||
}
|
||||
|
||||
if (Company::CanAllocateItem()) {
|
||||
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {
|
||||
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; ++c) {
|
||||
if (!Company::IsValidID(c)) {
|
||||
return c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user