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.
This commit is contained in:
Pasi Kallinen
2020-02-16 21:46:45 +02:00
parent f76aba4d7f
commit c7ec28f4c7

View File

@@ -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;