]> granicus.if.org Git - nethack/commitdiff
#R715 -- tombstone bulletproofing
authorkmhugo <kmhugo>
Sun, 31 Mar 2002 05:21:53 +0000 (05:21 +0000)
committerkmhugo <kmhugo>
Sun, 31 Mar 2002 05:21:53 +0000 (05:21 +0000)
Prevent an end-of-game panic if the tombstone window cannot
be made.

src/end.c

index 29ccd006af1bd85f8a07995bcae0c11cf055939f..020f35b0de7687cd363ed84c89a0215d5faa5523 100644 (file)
--- 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 */