forked from github/server
seenspell conversion bugfix
This commit is contained in:
parent
ef3b72ceb7
commit
54ee7c04dc
1 changed files with 3 additions and 3 deletions
|
@ -109,12 +109,12 @@ static int cmp_spell(const void *a, const void *b) {
|
||||||
|
|
||||||
static bool set_seen(attrib **alist, struct spell *sp) {
|
static bool set_seen(attrib **alist, struct spell *sp) {
|
||||||
attrib *a = a_find(*alist, &at_seenspells);
|
attrib *a = a_find(*alist, &at_seenspells);
|
||||||
selist *sl;
|
selist **sl;
|
||||||
if (!a) {
|
if (!a) {
|
||||||
a = a_add(alist, a_new(&at_seenspells));
|
a = a_add(alist, a_new(&at_seenspells));
|
||||||
}
|
}
|
||||||
sl = (selist *)a->data.v;
|
sl = (selist **)&a->data.v;
|
||||||
return selist_set_insert(&sl, sp, cmp_spell);
|
return selist_set_insert(sl, sp, cmp_spell);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void upgrade_seenspell(attrib **alist, attrib *abegin) {
|
static void upgrade_seenspell(attrib **alist, attrib *abegin) {
|
||||||
|
|
Loading…
Reference in a new issue