forked from github/server
(old eressea binaries)
this is still crashing, but not due to familiars, i think.
This commit is contained in:
parent
b654c89773
commit
2db05460a3
1 changed files with 4 additions and 1 deletions
|
@ -535,7 +535,10 @@ select_familiar(const race * magerace, magic_t magiegebiet)
|
|||
retval = magerace->familiars[magiegebiet];
|
||||
}
|
||||
|
||||
assert (retval==NULL || retval->init_familiar!=NULL);
|
||||
assert (retval!=NULL);
|
||||
if (retval->init_familiar!=NULL) {
|
||||
return NULL;
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue