1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

(svn r20264) -Fix (r20258): saving a new preset was broken

This commit is contained in:
yexo
2010-07-31 20:28:10 +00:00
parent 5f8cfba77a
commit adf94b8529

View File

@@ -900,6 +900,9 @@ struct NewGRFWindow : public QueryStringBaseWindow {
{
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) {