Mercurial > hg > openttd
changeset 15603:ea0089ca72ef draft
(svn r20264) -Fix (r20258): saving a new preset was broken
author | yexo <yexo@openttd.org> |
---|---|
date | Sat, 31 Jul 2010 20:28:10 +0000 |
parents | 71b4c310d261 |
children | ca959eb5d431 |
files | src/newgrf_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -900,6 +900,9 @@ { if (str == NULL) return; + SaveGRFPresetToConfig(str, this->actives); + GetGRFPresetList(&_grf_preset_list); + /* Switch to this preset */ for (uint i = 0; i < _grf_preset_list.Length(); i++) { if (_grf_preset_list[i] != NULL && strcmp(_grf_preset_list[i], str) == 0) {