From d289464d69172a1048048aebe29bfd56250fc6fa Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 25 May 2008 22:36:44 +0000 Subject: (svn r13255) -Codechange: move _opt to _settings. --- src/currency.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/currency.cpp') diff --git a/src/currency.cpp b/src/currency.cpp index b26de04bb..7f21b7c50 100644 --- a/src/currency.cpp +++ b/src/currency.cpp @@ -150,10 +150,10 @@ uint GetMaskOfAllowedCurrencies() **/ void CheckSwitchToEuro() { - if (_currency_specs[_opt.currency].to_euro != CF_NOEURO && - _currency_specs[_opt.currency].to_euro != CF_ISEURO && - _cur_year >= _currency_specs[_opt.currency].to_euro) { - _opt.currency = 2; // this is the index of euro above. + if (_currency_specs[_settings.gui.currency].to_euro != CF_NOEURO && + _currency_specs[_settings.gui.currency].to_euro != CF_ISEURO && + _cur_year >= _currency_specs[_settings.gui.currency].to_euro) { + _settings.gui.currency = 2; // this is the index of euro above. AddNewsItem(STR_EURO_INTRODUCE, NS_ECONOMY, 0, 0); } } -- cgit v1.2.3-54-g00ecf