(svn r20264) -Fix (r20258): saving a new preset was broken

This commit is contained in:
yexo 2010-07-31 20:28:10 +00:00
parent 5f8cfba77a
commit adf94b8529
1 changed files with 3 additions and 0 deletions

View File

@ -900,6 +900,9 @@ struct NewGRFWindow : public QueryStringBaseWindow {
{
if (str == NULL) return;
SaveGRFPresetToConfig(str, this->actives);
GetGRFPresetList(&_grf_preset_list);
/* Switch to this preset */
for (uint i = 0; i < _grf_preset_list.Length(); i++) {
if (_grf_preset_list[i] != NULL && strcmp(_grf_preset_list[i], str) == 0) {