changeset 6226:f67f7de4589e draft

(svn r9027) -Fix [FS#664]: desync caused by buffer overrun.
author rubidium <rubidium@openttd.org>
date Tue, 06 Mar 2007 18:03:06 +0000
parents 82ff7386f0fc
children 2f3e0f04a033
files src/currency.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/currency.cpp
+++ b/src/currency.cpp
@@ -173,7 +173,7 @@
 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 */