(svn r6486) -Fix (r6485): wrong variable name used in GetNewgrfCurrencyIdConverted()
authorglx
Wed, 20 Sep 2006 01:08:50 +0000
changeset 4626 ce414b54bfc3
parent 4625 f365b341a330
child 4627 9fd6709a30e1
(svn r6486) -Fix (r6485): wrong variable name used in GetNewgrfCurrencyIdConverted()
currency.c
--- 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 */