diff --git a/src/currency.cpp b/src/currency.cpp
index 036f827bdb..c1bcc99097 100644
--- 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 */