summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-03-25 23:42:55 +0000
committerbelugas <belugas@openttd.org>2007-03-25 23:42:55 +0000
commit32b33e31218eb19b6775f51e731755d9b0c05a49 (patch)
tree17be004bb6cdaa3f396df286149703a5d9bde6d2 /src/settings.cpp
parentf9547cf3b20fdab423e999de6b6adf3d9a7d05a7 (diff)
downloadopenttd-32b33e31218eb19b6775f51e731755d9b0c05a49.tar.xz
(svn r9467) -Fix(FS#703,6108): When resetting the array of currencies, the custom currency was reset too, thus loosing the setting a user could have used for it.(glx)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index d82eec7d7..1aec9d641 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -1685,6 +1685,7 @@ extern void CheckDifficultyLevels();
void LoadFromConfig()
{
IniFile *ini = ini_load(_config_file);
+ ResetCurrencies(false); // Initialize the array of curencies, without preserving the custom one
HandleSettingDescs(ini, ini_load_settings, ini_load_setting_list);
_grfconfig_newgame = GRFLoadConfig(ini, "newgrf", false);
_grfconfig_static = GRFLoadConfig(ini, "newgrf-static", true);