From bf994b46f1441b4097093f8c8d1aa8f849c7c1da Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 16 Jun 2011 10:59:09 +0000 Subject: (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(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2