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) {
attrib *a = a_find(*alist, &at_seenspells);
selist *sl;
selist **sl;
if (!a) {
a = a_add(alist, a_new(&at_seenspells));
}
sl = (selist *)a->data.v;
return selist_set_insert(&sl, sp, cmp_spell);
sl = (selist **)&a->data.v;
return selist_set_insert(sl, sp, cmp_spell);
}
static void upgrade_seenspell(attrib **alist, attrib *abegin) {