mirror of https://github.com/OpenTTD/OpenTTD
(svn r15245) -Fix: don't "save" the NewGRF settings on closing the NewGRF window when the content of the window isn't editable
parent
d05ab5a531
commit
aff27ca884
|
@ -342,7 +342,7 @@ struct NewGRFWindow : public Window {
|
||||||
|
|
||||||
~NewGRFWindow()
|
~NewGRFWindow()
|
||||||
{
|
{
|
||||||
if (!this->execute) {
|
if (this->editable && !this->execute) {
|
||||||
CopyGRFConfigList(this->orig_list, this->list, true);
|
CopyGRFConfigList(this->orig_list, this->list, true);
|
||||||
ResetGRFConfig(false);
|
ResetGRFConfig(false);
|
||||||
ReloadNewGRFData();
|
ReloadNewGRFData();
|
||||||
|
|
Loading…
Reference in New Issue