summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-06 18:03:06 +0000
committerrubidium <rubidium@openttd.org>2007-03-06 18:03:06 +0000
commit38cc68898db2ebeb5b8ee9e2eff4cb96188416be (patch)
tree5b36de1072fd07a1a6a376b7108ab8713ebd2868 /src
parente073c085dca4c942d7d0987e0048330eb354db05 (diff)
downloadopenttd-38cc68898db2ebeb5b8ee9e2eff4cb96188416be.tar.xz
(svn r9027) -Fix [FS#664]: desync caused by buffer overrun.
Diffstat (limited to 'src')
-rw-r--r--src/currency.cpp2
1 files changed, 1 insertions, 1 deletions
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 */