diff options
author | glx <glx@openttd.org> | 2006-09-20 01:08:50 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2006-09-20 01:08:50 +0000 |
commit | c7d0baefbbc09a926618ead59adc21db0b049fae (patch) | |
tree | 4940b4e94711a6b80acfa3b26bf1f4b2febe47a2 | |
parent | b51d58a44c9f8b52db59b842e4309b5eaf4b9c81 (diff) | |
download | openttd-c7d0baefbbc09a926618ead59adc21db0b049fae.tar.xz |
(svn r6486) -Fix (r6485): wrong variable name used in GetNewgrfCurrencyIdConverted()
-rw-r--r-- | currency.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/currency.c b/currency.c index 3347d6eb4..5ab3dbde1 100644 --- a/currency.c +++ b/currency.c @@ -117,7 +117,7 @@ const byte TTDPatch_To_OTTDIndex[] = **/ 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 */ |