diff options
-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 */ |