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:
@@ -3390,6 +3390,7 @@ int which_set;
|
|||||||
g.symset[which_set].explicitly = TRUE;
|
g.symset[which_set].explicitly = TRUE;
|
||||||
g.chosen_symset_start = g.chosen_symset_end = FALSE;
|
g.chosen_symset_start = g.chosen_symset_end = FALSE;
|
||||||
g.symset_which_set = which_set;
|
g.symset_which_set = which_set;
|
||||||
|
g.symset_count = 0;
|
||||||
|
|
||||||
config_error_init(TRUE, "symbols", FALSE);
|
config_error_init(TRUE, "symbols", FALSE);
|
||||||
|
|
||||||
@@ -3499,6 +3500,7 @@ int which_set;
|
|||||||
g.symset_list = tmpsp;
|
g.symset_list = tmpsp;
|
||||||
else
|
else
|
||||||
lastsp->next = tmpsp;
|
lastsp->next = tmpsp;
|
||||||
|
tmpsp->idx = g.symset_count++;
|
||||||
tmpsp->name = dupstr(bufp);
|
tmpsp->name = dupstr(bufp);
|
||||||
tmpsp->desc = (char *) 0;
|
tmpsp->desc = (char *) 0;
|
||||||
tmpsp->handling = H_UNK;
|
tmpsp->handling = H_UNK;
|
||||||
|
|||||||
Reference in New Issue
Block a user