mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r22594) -Fix [FS#4644]: add active NewGRFs to the list of available ones when selecting the empty preset
This commit is contained in:
parent
1a0d25dab1
commit
bf994b46f1
|
@ -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…
Reference in New Issue