From 151f27e0c5eec13f7b03d9d4a98bcec90e082503 Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 5 Feb 2002 02:43:38 +0000 Subject: [PATCH] crash fix don't try to clear the window if windows haven't been inited yet --- src/dungeon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dungeon.c b/src/dungeon.c index c7cd166ce..b6782df8f 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -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.");