(svn r15245) -Fix: don't "save" the NewGRF settings on closing the NewGRF window when the content of the window isn't editable

This commit is contained in:
rubidium 2009-01-23 23:37:49 +00:00
parent d05ab5a531
commit aff27ca884
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ struct NewGRFWindow : public Window {
~NewGRFWindow()
{
if (!this->execute) {
if (this->editable && !this->execute) {
CopyGRFConfigList(this->orig_list, this->list, true);
ResetGRFConfig(false);
ReloadNewGRFData();