Mercurial > hg > openttd
changeset 4626:9e744bae5e4e draft
(svn r6486) -Fix (r6485): wrong variable name used in GetNewgrfCurrencyIdConverted()
author | glx <glx@openttd.org> |
---|---|
date | Wed, 20 Sep 2006 01:08:50 +0000 |
parents | 60dc10fc014e |
children | 461390879182 |
files | currency.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/currency.c +++ b/currency.c @@ -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 */