Skip to content

Commit

Permalink
Fix f1144de: "knots" missing from settings units list. (OpenTTD#12082)
Browse files Browse the repository at this point in the history
Knots were added as a setting but not included in the settings list so were saved as a number instead of string.
  • Loading branch information
PeterN authored Feb 13, 2024
1 parent 4cea9a6 commit 1e82d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/table/settings/locale_settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static void SettingsValueVelocityUnit(const IntSettingDesc &sd, uint first_param
uint8_t _old_units; ///< Old units from old savegames

static constexpr std::initializer_list<const char*> _locale_currencies{"GBP", "USD", "EUR", "JPY", "ATS", "BEF", "CHF", "CZK", "DEM", "DKK", "ESP", "FIM", "FRF", "GRD", "HUF", "ISK", "ITL", "NLG", "NOK", "PLN", "RON", "RUR", "SIT", "SEK", "TRY", "SKK", "BRL", "EEK", "LTL", "KRW", "ZAR", "custom", "GEL", "IRR", "RUB", "MXN", "NTD", "CNY", "HKD", "INR", "IDR", "MYR", "LVL"};
static constexpr std::initializer_list<const char*> _locale_units{"imperial", "metric", "si", "gameunits"};
static constexpr std::initializer_list<const char*> _locale_units{"imperial", "metric", "si", "gameunits", "knots"};

static_assert(_locale_currencies.size() == CURRENCY_END);

Expand Down

0 comments on commit 1e82d75

Please sign in to comment.