forked from github/server
do not init familiars without an init function.
This commit is contained in:
parent
2db05460a3
commit
e02a7afb78
1 changed files with 6 additions and 1 deletions
|
@ -556,7 +556,12 @@ static void
|
||||||
make_familiar(unit *familiar, unit *mage)
|
make_familiar(unit *familiar, unit *mage)
|
||||||
{
|
{
|
||||||
/* skills and spells: */
|
/* skills and spells: */
|
||||||
familiar->race->init_familiar(familiar);
|
if (familiar->race->init_familiar!=NULL) {
|
||||||
|
familiar->race->init_familiar(familiar);
|
||||||
|
} else {
|
||||||
|
log_error(("could not perform initialization for familiar %s.\n",
|
||||||
|
familiar->faction->race->_name[0]));
|
||||||
|
}
|
||||||
|
|
||||||
/* triggers: */
|
/* triggers: */
|
||||||
create_newfamiliar(mage, familiar);
|
create_newfamiliar(mage, familiar);
|
||||||
|
|
Loading…
Reference in a new issue