(svn r22594) -Fix [FS#4644]: add active NewGRFs to the list of available ones when selecting the empty preset

This commit is contained in:
yexo 2011-06-16 10:59:09 +00:00
parent 1a0d25dab1
commit bf994b46f1
1 changed files with 2 additions and 5 deletions

View File

@ -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;