(svn r6486) -Fix (r6485): wrong variable name used in GetNewgrfCurrencyIdConverted()
--- a/currency.c Wed Sep 20 00:34:06 2006 +0000
+++ b/currency.c Wed Sep 20 01:08:50 2006 +0000
@@ -117,7 +117,7 @@
**/
byte GetNewgrfCurrencyIdConverted(byte grfcurr_id)
{
- return (grf_id >= lengthof(TTDPatch_To_OTTDIndex)) ? grfcurr_id : TTDPatch_To_OTTDIndex[grfcurr_id];
+ return (grfcurr_id >= lengthof(TTDPatch_To_OTTDIndex)) ? grfcurr_id : TTDPatch_To_OTTDIndex[grfcurr_id];
}
/* get a mask of the allowed currencies depending on the year */