From adf94b85297b6a11989617eaa1081c7b1da08b62 Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 31 Jul 2010 20:28:10 +0000 Subject: [PATCH] (svn r20264) -Fix (r20258): saving a new preset was broken --- src/newgrf_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 2b94aad0ed..516b5dbda8 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -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) {