seenspell conversion bugfix

This commit is contained in:
Enno Rehling 2018-03-10 17:46:48 +01:00
parent ef3b72ceb7
commit 54ee7c04dc

View file

@ -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) {