mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-21 11:22:45 +01:00
Codechange: use prefix operator++ for CompanyID iterations
This commit is contained in:
@@ -173,7 +173,7 @@ static void PopupMainCompanyToolbMenu(Window *w, WidgetID widget, CompanyMask gr
|
||||
break;
|
||||
}
|
||||
|
||||
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {
|
||||
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; ++c) {
|
||||
if (!Company::IsValidID(c)) continue;
|
||||
list.push_back(std::make_unique<DropDownListCompanyItem>(c, grey.Test(c)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user