diff options
author | Darkvater <darkvater@openttd.org> | 2007-02-27 15:17:06 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2007-02-27 15:17:06 +0000 |
commit | 44879ab2c5014b32d6f9434359c63b33960a5d55 (patch) | |
tree | f8e6326410e1dc9d07a1b8e68d3954638b915b89 /src/newgrf_gui.cpp | |
parent | 33771b4f251aba62cc813ea038ba4a7c6fcd996c (diff) | |
download | openttd-44879ab2c5014b32d6f9434359c63b33960a5d55.tar.xz |
(svn r8914) -Regression (UTF8): Win9x is very picky about trailing slashes in paths, so C:\\* will not work (but C:\Windows\\* does; go figure). Thanks glx for pointing it out and for the initial fix.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 6d5a78b89..54cbdd536 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -485,6 +485,9 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) 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; |