summaryrefslogtreecommitdiff
path: root/src/currency.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-25 22:36:44 +0000
committerrubidium <rubidium@openttd.org>2008-05-25 22:36:44 +0000
commit8c9cc415e3eac6a7709f6a8978f213311416312e (patch)
tree1460114c8e9243ecb6e428c7db15dfa7abc391ed /src/currency.cpp
parent51ca426c4bdb85137be82b0cc2436fc5ac0c442f (diff)
downloadopenttd-8c9cc415e3eac6a7709f6a8978f213311416312e.tar.xz
(svn r13255) -Codechange: move _opt to _settings.
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 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);
}
}