1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-29 07:04:35 +01:00

Codechange: strongly type LeagueTableID and LeagueTableElementID

This commit is contained in:
Rubidium
2025-01-31 21:37:32 +01:00
committed by rubidium42
parent 6aada55e96
commit 6c8915fdbc
5 changed files with 12 additions and 11 deletions

View File

@@ -663,7 +663,7 @@ static void AddDropDownLeagueTableOptions(DropDownList &list)
{
if (LeagueTable::GetNumItems() > 0) {
for (LeagueTable *lt : LeagueTable::Iterate()) {
list.push_back(MakeDropDownListStringItem(lt->title, lt->index));
list.push_back(MakeDropDownListStringItem(lt->title, lt->index.base()));
}
} else {
list.push_back(MakeDropDownListStringItem(STR_GRAPH_MENU_COMPANY_LEAGUE_TABLE, LTMN_PERFORMANCE_LEAGUE));