duplicate attribute error

This commit is contained in:
Enno Rehling 2006-01-29 15:57:47 +00:00
parent 3a313515c0
commit 546524fe0c

View file

@ -340,8 +340,9 @@ create_mage(unit * u, magic_t mtyp)
if (a!=NULL) {
mage = a->data.v;
assert(mage->spells==NULL && mage->magietyp == mtyp);
}
} else {
a = a_add(&u->attribs, a_new(&at_mage));
}
mage = a->data.v;
mage->magietyp = mtyp;