diff options
author | yexo <yexo@openttd.org> | 2010-07-31 20:28:10 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-07-31 20:28:10 +0000 |
commit | adf94b85297b6a11989617eaa1081c7b1da08b62 (patch) | |
tree | d3d5d01be8b106beca4f5e8e1bf2235df68a295e /src | |
parent | 5f8cfba77a075a4f8647b64123fc0e61308950d6 (diff) | |
download | openttd-adf94b85297b6a11989617eaa1081c7b1da08b62.tar.xz |
(svn r20264) -Fix (r20258): saving a new preset was broken
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 2b94aad0e..516b5dbda 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) { |