Merge branch 'NetHack-3.6.2'

This commit is contained in:
nhmall
2019-02-08 14:53:22 -05:00
3 changed files with 10 additions and 16 deletions

View File

@@ -573,7 +573,7 @@ void
curses_view_file(const char *filename, boolean must_exist)
{
winid wid;
anything *identifier;
anything Id;
char buf[BUFSZ];
menu_item *selected = NULL;
dlb *fp = dlb_fopen(filename, "r");
@@ -588,11 +588,10 @@ curses_view_file(const char *filename, boolean must_exist)
wid = curses_get_wid(NHW_MENU);
curses_create_nhmenu(wid);
identifier = (anything *) alloc(sizeof (anything));
identifier->a_void = NULL;
Id = zeroany;
while (dlb_fgets(buf, BUFSZ, fp) != NULL) {
curses_add_menu(wid, NO_GLYPH, identifier, 0, 0, A_NORMAL, buf, FALSE);
curses_add_menu(wid, NO_GLYPH, &Id, 0, 0, A_NORMAL, buf, FALSE);
}
dlb_fclose(fp);