diff options
author | yexo <yexo@openttd.org> | 2010-09-15 22:46:18 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-09-15 22:46:18 +0000 |
commit | 15212cf9485dcc0374347cb93813d549ea089082 (patch) | |
tree | bb5fdee112b9aabdb39c11cac31477e33dca198d /src | |
parent | 0e458131bc3cea18e2f515c0c412d6f06ac74e4b (diff) | |
download | openttd-15212cf9485dcc0374347cb93813d549ea089082.tar.xz |
(svn r20812) -Fix [FS#4125]: crash when confirming newgrf changes with the newgrf parameter window open
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index fab44cb2e..2ec921d08 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1590,6 +1590,7 @@ static const WindowDesc _newgrf_desc( static void NewGRFConfirmationCallback(Window *w, bool confirmed) { if (confirmed) { + DeleteWindowByClass(WC_GRF_PARAMETERS); NewGRFWindow *nw = dynamic_cast<NewGRFWindow*>(w); GamelogStartAction(GLAT_GRF); |