From: Pasi Kallinen Date: Sun, 16 Feb 2020 19:46:45 +0000 (+0200) Subject: Fix symset menu X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7ec28f4c7346b76795e2817f58d04d07bb3bce5;p=nethack Fix symset menu Symset entry index numbers weren't initialized when the symsets were read from file, making the menu behave erratically. This looks like a merge mistake. --- diff --git a/src/files.c b/src/files.c index 1ffe4ce82..dd05153b1 100644 --- a/src/files.c +++ b/src/files.c @@ -3390,6 +3390,7 @@ int which_set; g.symset[which_set].explicitly = TRUE; g.chosen_symset_start = g.chosen_symset_end = FALSE; g.symset_which_set = which_set; + g.symset_count = 0; config_error_init(TRUE, "symbols", FALSE); @@ -3499,6 +3500,7 @@ int which_set; g.symset_list = tmpsp; else lastsp->next = tmpsp; + tmpsp->idx = g.symset_count++; tmpsp->name = dupstr(bufp); tmpsp->desc = (char *) 0; tmpsp->handling = H_UNK;