# HG changeset patch # User yexo # Date 1280608090 0 # Node ID ea0089ca72efe157a9c492425421802f306c0521 # Parent 71b4c310d261c62f4faf28937a5e227f6d15324b (svn r20264) -Fix (r20258): saving a new preset was broken diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -900,6 +900,9 @@ { 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) {