From 15212cf9485dcc0374347cb93813d549ea089082 Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 15 Sep 2010 22:46:18 +0000 Subject: [PATCH] (svn r20812) -Fix [FS#4125]: crash when confirming newgrf changes with the newgrf parameter window open --- src/newgrf_gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index fab44cb2e1..2ec921d085 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(w); GamelogStartAction(GLAT_GRF);