From 579bdfae4ae7cbf3ae4a6b833b041e59b392eb7a Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 16 Jun 2011 10:59:09 +0000 Subject: [PATCH] (svn r22594) -Fix [FS#4644]: add active NewGRFs to the list of available ones when selecting the empty preset --- src/newgrf_gui.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index f91ef192e9..f2ea18442f 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;