# HG changeset patch # User rubidium # Date 2007-03-06 18:03:06 # Node ID 6350e47be929b316bcf1790eac884b2016140b3e # Parent 10a046e3989a5bdb7dbe2aba6e2feb1a71bd7ba6 (svn r9027) -Fix [FS#664]: desync caused by buffer overrun. 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 */