# HG changeset patch # User Darkvater # Date 1172592424 0 # Node ID a6dd37242b77643479c999d967e318f43dbf0e52 # Parent 9ac91c745e60b8334ae0503045f7c6e221242796 (svn r8920) -Codechange: Do not require to press 'Apply changes' in the newgrf GUI if the changes in there are not activated (this happens in the title screen) diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -485,6 +485,9 @@ break; case WE_DESTROY: + if (!WP(w, newgrf_d).execute) { + CopyGRFConfigList(WP(w, newgrf_d).orig_list, *WP(w, newgrf_d).list); + } /* Remove the temporary copy of grf-list used in window */ ClearGRFConfigList(WP(w, newgrf_d).list); break;