(svn r20812) -Fix [FS#4125]: crash when confirming newgrf changes with the newgrf parameter window open

This commit is contained in:
yexo 2010-09-15 22:46:18 +00:00
parent 0e458131bc
commit 15212cf948
1 changed files with 1 additions and 0 deletions

View File

@ -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);