summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index f91ef192e..f2ea18442 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -1004,12 +1004,9 @@ struct NewGRFWindow : public QueryStringBaseWindow {
this->preset = index;
if (index != -1) {
- GRFConfig *c = LoadGRFPresetFromConfig(_grf_preset_list[index]);
-
- this->active_sel = NULL;
- this->actives = c;
- this->avails.ForceRebuild();
+ this->actives = LoadGRFPresetFromConfig(_grf_preset_list[index]);
}
+ this->avails.ForceRebuild();
DeleteWindowByClass(WC_GRF_PARAMETERS);
this->active_sel = NULL;