From d47f599537115e0239a5721d62d6c122f0287cbc Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 23 Apr 2006 08:56:51 +0000 Subject: [PATCH] crashbug toter magier mit antimagiczone --- src/common/kernel/magic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/kernel/magic.c b/src/common/kernel/magic.c index 019ac7609..e98859839 100644 --- a/src/common/kernel/magic.c +++ b/src/common/kernel/magic.c @@ -1014,7 +1014,7 @@ spellpower(region * r, unit * u, const spell * sp, int cast_level, struct order force -= curse_geteffect(c); curse_changevigour(&r->attribs, c, -cast_level); cmistake(u, ord, 185, MSG_MAGIC); - if (mage!=NULL) { + if (mage!=NULL && mage->faction!=NULL) { if (force>0) { ADDMSG(&mage->faction->msgs, msg_message("reduce_spell", "self mage region", mage, u, r)); } else { @@ -1030,7 +1030,7 @@ spellpower(region * r, unit * u, const spell * sp, int cast_level, struct order force -= curse_geteffect(c); curse_changevigour(&u->attribs, c, -1); cmistake(u, ord, 185, MSG_MAGIC); - if (mage!=NULL) { + if (mage!=NULL && mage->faction!=NULL) { if (force>0) { ADDMSG(&mage->faction->msgs, msg_message("reduce_spell", "self mage region", mage, u, r)); } else {