summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-07-31 20:28:10 +0000
committeryexo <yexo@openttd.org>2010-07-31 20:28:10 +0000
commitadf94b85297b6a11989617eaa1081c7b1da08b62 (patch)
treed3d5d01be8b106beca4f5e8e1bf2235df68a295e /src
parent5f8cfba77a075a4f8647b64123fc0e61308950d6 (diff)
downloadopenttd-adf94b85297b6a11989617eaa1081c7b1da08b62.tar.xz
(svn r20264) -Fix (r20258): saving a new preset was broken
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_gui.cpp3
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) {