(svn r10548) -Fix [FS#1020]: don't segfault when you quit in the end-of-the-game screen

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
truelight 17 years ago
parent fe952911f5
commit 84303d0396

@ -1700,7 +1700,7 @@ static void MainToolbarWndProc(Window *w, WindowEvent *e)
}
case WE_MESSAGE:
HandleZoomMessage(w, FindWindowById(WC_MAIN_WINDOW, 0)->viewport, 17, 18);
if (FindWindowById(WC_MAIN_WINDOW, 0) != NULL) HandleZoomMessage(w, FindWindowById(WC_MAIN_WINDOW, 0)->viewport, 17, 18);
break;
}
}

Loading…
Cancel
Save