crash fix

don't try to clear the window if windows haven't been inited yet
This commit is contained in:
cohrs
2002-02-05 02:43:38 +00:00
parent 547370ecf5
commit 151f27e0c5
+1 -1
View File
@@ -665,7 +665,7 @@ init_dungeons() /* initialize the "dungeon" structs */
* check_version() they will be printed using pline(), which doesn't * check_version() they will be printed using pline(), which doesn't
* mix with the raw messages that might be already on the screen * 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)) if (!check_version(&vers_info, DUNGEON_FILE, TRUE))
panic("Dungeon description not valid."); panic("Dungeon description not valid.");