summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-09-15 22:46:18 +0000
committeryexo <yexo@openttd.org>2010-09-15 22:46:18 +0000
commit15212cf9485dcc0374347cb93813d549ea089082 (patch)
treebb5fdee112b9aabdb39c11cac31477e33dca198d /src
parent0e458131bc3cea18e2f515c0c412d6f06ac74e4b (diff)
downloadopenttd-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.cpp1
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);