diff options
author | rubidium <rubidium@openttd.org> | 2007-03-06 18:03:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-06 18:03:06 +0000 |
commit | b5f418d9f13b2b7ba4a9d68faf7c703ea72dc24c (patch) | |
tree | 5b36de1072fd07a1a6a376b7108ab8713ebd2868 /src | |
parent | 4b2ff65e0e8b06f46a646efd28da65318d4a998b (diff) | |
download | openttd-b5f418d9f13b2b7ba4a9d68faf7c703ea72dc24c.tar.xz |
(svn r9027) -Fix [FS#664]: desync caused by buffer overrun.
Diffstat (limited to 'src')
-rw-r--r-- | src/currency.cpp | 2 |
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 */ |