mirror of https://github.com/OpenTTD/OpenTTD
(svn r20812) -Fix [FS#4125]: crash when confirming newgrf changes with the newgrf parameter window open
parent
0e458131bc
commit
15212cf948
|
@ -1590,6 +1590,7 @@ static const WindowDesc _newgrf_desc(
|
||||||
static void NewGRFConfirmationCallback(Window *w, bool confirmed)
|
static void NewGRFConfirmationCallback(Window *w, bool confirmed)
|
||||||
{
|
{
|
||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
|
DeleteWindowByClass(WC_GRF_PARAMETERS);
|
||||||
NewGRFWindow *nw = dynamic_cast<NewGRFWindow*>(w);
|
NewGRFWindow *nw = dynamic_cast<NewGRFWindow*>(w);
|
||||||
|
|
||||||
GamelogStartAction(GLAT_GRF);
|
GamelogStartAction(GLAT_GRF);
|
||||||
|
|
Loading…
Reference in New Issue