Changeset - r6226:6350e47be929
[Not reviewed]
master
0 1 0
rubidium - 18 years ago 2007-03-06 18:03:06
rubidium@openttd.org
(svn r9027) -Fix [FS#664]: desync caused by buffer overrun.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/currency.cpp
Show inline comments
 
@@ -170,13 +170,13 @@ void ResetCurrencies(void)
 
 * Build a list of currency names StringIDs to use in a dropdown list
 
 * @return Pointer to a (static) array of StringIDs
 
 */
 
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 */
 
	for (i = 0; i < NUM_CURRENCY; i++) {
 
		names[i] = _currency_specs[i].name;
 
	}
0 comments (0 inline, 0 general)