Mercurial > hg > openttd
changeset 17809:981f157de59f draft
(svn r22594) -Fix [FS#4644]: add active NewGRFs to the list of available ones when selecting the empty preset
author | yexo <yexo@openttd.org> |
---|---|
date | Thu, 16 Jun 2011 10:59:09 +0000 |
parents | 18a703930505 |
children | 3f62ad83cb4f |
files | src/newgrf_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1004,12 +1004,9 @@ 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;