]> granicus.if.org Git - nethack/commitdiff
crash fix
authorcohrs <cohrs>
Tue, 5 Feb 2002 02:43:38 +0000 (02:43 +0000)
committercohrs <cohrs>
Tue, 5 Feb 2002 02:43:38 +0000 (02:43 +0000)
don't try to clear the window if windows haven't been inited yet

src/dungeon.c

index c7cd166cedcf8f7ac63c36e725cc16d82cf9b2fa..b6782df8fa1e7239e044e10378a17bec0f7fdd8c 100644 (file)
@@ -665,7 +665,7 @@ init_dungeons()             /* initialize the "dungeon" structs */
         * check_version() they will be printed using pline(), which doesn't
         * mix with the raw messages that might be already on the screen
          */
-       clear_nhwindow(WIN_MAP);
+       if (iflags.window_inited) clear_nhwindow(WIN_MAP);
        if (!check_version(&vers_info, DUNGEON_FILE, TRUE))
            panic("Dungeon description not valid.");