mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r20264) -Fix (r20258): saving a new preset was broken
This commit is contained in:
parent
5f8cfba77a
commit
adf94b8529
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue