summaryrefslogtreecommitdiff
path: root/src/currency.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-06-05 11:26:38 +0000
committerrubidium <rubidium@openttd.org>2008-06-05 11:26:38 +0000
commit9e811a2f8be9c69807acef3c727e4022be2cd9c0 (patch)
treee63519c8e5c875e772b1fd4a458ac9cf260d4ce2 /src/currency.h
parent9b971dab60ad98c1444cc79c6dc3802f529f10e2 (diff)
downloadopenttd-9e811a2f8be9c69807acef3c727e4022be2cd9c0.tar.xz
(svn r13386) -Fix: global currency/units setting being overriden when loading a savegame.
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 f9c67ea87..f5ad90be8 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[_settings_client.gui.currency])
+#define _currency ((const CurrencySpec*)&_currency_specs[_game_mode == GM_MENU ? _settings_newgame.locale.currency : _settings_game.locale.currency])
uint GetMaskOfAllowedCurrencies();
void CheckSwitchToEuro();