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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user