forked from github/server
duplicate attribute error
This commit is contained in:
parent
3a313515c0
commit
546524fe0c
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue