Codechange: use prefix operator++ for CompanyID iterations

This commit is contained in:
Rubidium
2025-02-16 14:02:18 +01:00
committed by rubidium42
parent b0eb8fe4db
commit 1ffc950e22
12 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -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;
}