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

This commit is contained in:
truelight 2007-07-13 15:02:22 +00:00
parent fe952911f5
commit 84303d0396
1 changed files with 1 additions and 1 deletions

View File

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