From 2db05460a384c20cf27711e459578dd90ebc414f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 9 Feb 2006 20:06:31 +0000 Subject: [PATCH] (old eressea binaries) this is still crashing, but not due to familiars, i think. --- src/common/spells/spells.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/spells/spells.c b/src/common/spells/spells.c index c19aeea91..192b527fa 100644 --- a/src/common/spells/spells.c +++ b/src/common/spells/spells.c @@ -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; }