mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 01:12:39 +01:00
Codechange: Use TypedIndexContainer for typed index containers
Instead of ReferenceThroughBaseContainer
This commit is contained in:
committed by
Peter Nelson
parent
d0e49a297f
commit
63f1c2aa3a
@@ -181,7 +181,7 @@ static IndustryType _smallmap_industry_highlight = IT_INVALID;
|
||||
/** State of highlight blinking */
|
||||
static bool _smallmap_industry_highlight_state;
|
||||
/** For connecting company ID to position in owner list (small map legend) */
|
||||
static ReferenceThroughBaseContainer<std::array<uint32_t, MAX_COMPANIES>> _company_to_list_pos;
|
||||
static TypedIndexContainer<std::array<uint32_t, MAX_COMPANIES>, CompanyID> _company_to_list_pos;
|
||||
|
||||
/**
|
||||
* Fills an array for the industries legends.
|
||||
|
||||
Reference in New Issue
Block a user