# HG changeset patch # User Peter Nelson # Date 2024-02-13 20:19:45 # Node ID 0e71e9121a25ce0d4e1ade43c02ea57fc9a49360 # Parent b10f730cf3bff00cebb2e4a3067ef1324259fdf2 Fix f1144de: "knots" missing from settings units list. (#12082) Knots were added as a setting but not included in the settings list so were saved as a number instead of string. diff --git a/src/table/settings/locale_settings.ini b/src/table/settings/locale_settings.ini --- a/src/table/settings/locale_settings.ini +++ b/src/table/settings/locale_settings.ini @@ -13,7 +13,7 @@ static void SettingsValueVelocityUnit(co uint8_t _old_units; ///< Old units from old savegames static constexpr std::initializer_list _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 _locale_units{"imperial", "metric", "si", "gameunits"}; +static constexpr std::initializer_list _locale_units{"imperial", "metric", "si", "gameunits", "knots"}; static_assert(_locale_currencies.size() == CURRENCY_END);