mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-01 20:03:26 +00:00
(svn r20812) -Fix [FS#4125]: crash when confirming newgrf changes with the newgrf parameter window open
This commit is contained in:
parent
0e458131bc
commit
15212cf948
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user