diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_gui.cpp | 7 |
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; |