diff --git a/src/currency.cpp b/src/currency.cpp --- a/src/currency.cpp +++ b/src/currency.cpp @@ -173,7 +173,7 @@ void ResetCurrencies(void) StringID* BuildCurrencyDropdown(void) { /* Allow room for all currencies, plus a terminator entry */ - static StringID names[CUSTOM_CURRENCY_ID]; + static StringID names[NUM_CURRENCY + 1]; uint i; /* Add each name */