From 5e57e78818b69c1bcd87ee7519c62dfc61cc5c20 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 9 Apr 2006 19:19:18 +0000 Subject: [PATCH] fix familiar-fixes --- src/eressea/korrektur.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/eressea/korrektur.c b/src/eressea/korrektur.c index ba57446a4..5e6c7568f 100644 --- a/src/eressea/korrektur.c +++ b/src/eressea/korrektur.c @@ -845,6 +845,7 @@ check_mages(void) } } } + return 0; } static int @@ -867,12 +868,12 @@ fix_familiars(void) log_error(("%s was a %s familiar with no mage for faction %s\n", unitid(u), racename(lang, u, u->race), factionid(u->faction))); - a_remove(&u->attribs, a); + remove_familiar(u); } else if (!is_mage(mage)) { log_error(("%s was a %s familiar, but %s is not a mage for faction %s\n", unitid(u), racename(lang, u, u->race), unitid(mage), factionid(u->faction))); - a_remove(&u->attribs, a); + remove_familiar(u); } else if (has_skill(u, SK_MAGIC) && !is_mage(u)) { log_error(("%s is a familiar with magic skill, but did not have a mage-attribute\n", unitid(u)));