diff --git a/src/currency.cpp b/src/currency.cpp index 5c7164449b..36b2076c98 100644 --- a/src/currency.cpp +++ b/src/currency.cpp @@ -129,7 +129,7 @@ uint64_t GetMaskOfAllowedCurrencies() { uint64_t mask = 0LL; - for (Currencies i : EnumRange(CURRENCY_END)) { + for (Currency i : EnumRange(CURRENCY_END)) { TimerGameCalendar::Year to_euro = _currency_specs[i].to_euro; if (to_euro != CF_NOEURO && to_euro != CF_ISEURO && TimerGameCalendar::year >= to_euro) continue; @@ -161,7 +161,7 @@ static const IntervalTimer _check_switch_to_euro({TimerGameCa */ void ResetCurrencies(bool preserve_custom) { - for (Currencies i : EnumRange(CURRENCY_END)) { + for (Currency i : EnumRange(CURRENCY_END)) { if (preserve_custom && i == CURRENCY_CUSTOM) continue; _currency_specs[i] = origin_currency_specs[i]; } diff --git a/src/currency_type.h b/src/currency_type.h index 6b0af20754..6f206512a7 100644 --- a/src/currency_type.h +++ b/src/currency_type.h @@ -22,7 +22,7 @@ static constexpr TimerGameCalendar::Year MIN_EURO_YEAR{2000}; ///< The earliest * savegame compatibility and in order to refer to them quickly, especially * for referencing the custom one. */ -enum Currencies : uint8_t { +enum Currency : uint8_t { CURRENCY_GBP, ///< British Pound CURRENCY_USD, ///< US Dollar CURRENCY_EUR, ///< Euro