summaryrefslogtreecommitdiff
path: root/src/currency.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-25 12:57:39 +0000
committerrubidium <rubidium@openttd.org>2008-05-25 12:57:39 +0000
commit5fa0946c087408545c22250be1996f3433d94786 (patch)
tree025594bdaef0e1efcf18e01f88e9d25a469cdb7c /src/currency.h
parentf6ea07e7d8ebfebe817eca368df24383887d732a (diff)
downloadopenttd-5fa0946c087408545c22250be1996f3433d94786.tar.xz
(svn r13242) -Codechange: remove _opt_ptr.
Diffstat (limited to 'src/currency.h')
-rw-r--r--src/currency.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/currency.h b/src/currency.h
index 08b839a72..f2ff11650 100644
--- a/src/currency.h
+++ b/src/currency.h
@@ -39,7 +39,7 @@ extern CurrencySpec _currency_specs[NUM_CURRENCY];
// XXX small hack, but makes the rest of the code a bit nicer to read
#define _custom_currency (_currency_specs[CUSTOM_CURRENCY_ID])
-#define _currency ((const CurrencySpec*)&_currency_specs[_opt_ptr->currency])
+#define _currency ((const CurrencySpec*)&_currency_specs[(_game_mode == GM_MENU) ? _opt_newgame.currency : _opt.currency])
uint GetMaskOfAllowedCurrencies();
void CheckSwitchToEuro();