(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)

This commit is contained in:
belugas
2007-03-25 23:42:55 +00:00
parent 45e788d524
commit 683aae8abf
3 changed files with 10 additions and 4 deletions

View File

@@ -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);