From: kmhugo Date: Sun, 31 Mar 2002 05:21:53 +0000 (+0000) Subject: #R715 -- tombstone bulletproofing X-Git-Tag: MOVE2GIT~2848 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6de3fa89054cf12ac6174c859bfbd5f5891d248;p=nethack #R715 -- tombstone bulletproofing Prevent an end-of-game panic if the tombstone window cannot be made. --- diff --git a/src/end.c b/src/end.c index 29ccd006a..020f35b0d 100644 --- a/src/end.c +++ b/src/end.c @@ -738,7 +738,8 @@ die: if(!done_stopprint || flags.tombstone) endwin = create_nhwindow(NHW_TEXT); - if(how < GENOCIDED && flags.tombstone) outrip(endwin, how); + if (how < GENOCIDED && flags.tombstone && endwin != WIN_ERR) + outrip(endwin, how); } else done_stopprint = 1; /* just avoid any more output */