# HG changeset patch # User glx # Date 1158714530 0 # Node ID a8e20b5d9d626f3cd188aa13d756cb316a516ab9 # Parent 3e45c59b5d6454f1acdc89c7eebd84dbe6d187b9 (svn r6486) -Fix (r6485): wrong variable name used in GetNewgrfCurrencyIdConverted() diff -r 3e45c59b5d64 -r a8e20b5d9d62 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 */