(svn r6486) -Fix (r6485): wrong variable name used in GetNewgrfCurrencyIdConverted()
authorglx
Wed, 20 Sep 2006 01:08:50 +0000
changeset 4626 a8e20b5d9d62
parent 4625 3e45c59b5d64
child 4627 85305c208842
(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 */