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

pull/155/head
yexo 13 years ago
parent 4968af3b39
commit 579bdfae4a

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

Loading…
Cancel
Save