mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 00:42:45 +01:00
Codechange: Add 'const' to static variables, which are only initialised once.
This commit is contained in:
@@ -55,7 +55,7 @@ struct LegendAndColour {
|
||||
};
|
||||
|
||||
/** Link stat colours shown in legenda. */
|
||||
static uint8_t _linkstat_colours_in_legenda[] = {0, 1, 3, 5, 7, 9, 11};
|
||||
static const uint8_t _linkstat_colours_in_legenda[] = {0, 1, 3, 5, 7, 9, 11};
|
||||
|
||||
static const int NUM_NO_COMPANY_ENTRIES = 4; ///< Number of entries in the owner legend that are not companies.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user