summaryrefslogtreecommitdiff
path: root/src/currency.cpp
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.cpp
parent9b971dab60ad98c1444cc79c6dc3802f529f10e2 (diff)
downloadopenttd-9e811a2f8be9c69807acef3c727e4022be2cd9c0.tar.xz
(svn r13386) -Fix: global currency/units setting being overriden when loading a savegame.
Diffstat (limited to 'src/currency.cpp')
-rw-r--r--src/currency.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/currency.cpp b/src/currency.cpp
index 6f0ae1abd..671ba1456 100644
--- a/src/currency.cpp
+++ b/src/currency.cpp
@@ -150,10 +150,10 @@ uint GetMaskOfAllowedCurrencies()
**/
void CheckSwitchToEuro()
{
- if (_currency_specs[_settings_client.gui.currency].to_euro != CF_NOEURO &&
- _currency_specs[_settings_client.gui.currency].to_euro != CF_ISEURO &&
- _cur_year >= _currency_specs[_settings_client.gui.currency].to_euro) {
- _settings_client.gui.currency = 2; // this is the index of euro above.
+ if (_currency_specs[_settings_game.locale.currency].to_euro != CF_NOEURO &&
+ _currency_specs[_settings_game.locale.currency].to_euro != CF_ISEURO &&
+ _cur_year >= _currency_specs[_settings_game.locale.currency].to_euro) {
+ _settings_game.locale.currency = 2; // this is the index of euro above.
AddNewsItem(STR_EURO_INTRODUCE, NS_ECONOMY, 0, 0);
}
}