From d6de3fa89054cf12ac6174c859bfbd5f5891d248 Mon Sep 17 00:00:00 2001 From: kmhugo Date: Sun, 31 Mar 2002 05:21:53 +0000 Subject: [PATCH] #R715 -- tombstone bulletproofing Prevent an end-of-game panic if the tombstone window cannot be made. --- src/end.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */