From b5f418d9f13b2b7ba4a9d68faf7c703ea72dc24c Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 6 Mar 2007 18:03:06 +0000 Subject: (svn r9027) -Fix [FS#664]: desync caused by buffer overrun. --- src/currency.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/currency.cpp b/src/currency.cpp index 036f827bd..c1bcc9909 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 */ -- cgit v1.2.3-70-g09d2