mirror of https://github.com/OpenTTD/OpenTTD
(svn r22594) -Fix [FS#4644]: add active NewGRFs to the list of available ones when selecting the empty preset
parent
1a0d25dab1
commit
bf994b46f1
|
@ -1004,12 +1004,9 @@ struct NewGRFWindow : public QueryStringBaseWindow {
|
||||||
this->preset = index;
|
this->preset = index;
|
||||||
|
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
GRFConfig *c = LoadGRFPresetFromConfig(_grf_preset_list[index]);
|
this->actives = LoadGRFPresetFromConfig(_grf_preset_list[index]);
|
||||||
|
|
||||||
this->active_sel = NULL;
|
|
||||||
this->actives = c;
|
|
||||||
this->avails.ForceRebuild();
|
|
||||||
}
|
}
|
||||||
|
this->avails.ForceRebuild();
|
||||||
|
|
||||||
DeleteWindowByClass(WC_GRF_PARAMETERS);
|
DeleteWindowByClass(WC_GRF_PARAMETERS);
|
||||||
this->active_sel = NULL;
|
this->active_sel = NULL;
|
||||||
|
|
Loading…
Reference in New Issue