From cc3998bdd9ceff47fcc5577a3088fbfb5b455076 Mon Sep 17 00:00:00 2001 From: Bjテクrn Lindeijer Date: Sun, 12 Oct 2008 12:55:35 +0000 Subject: Don't forget to check 'src' for 0, as is done later on as well --- src/map/mob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index d53cbfe..951a801 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2021,7 +2021,7 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type) nullpo_retr(0, md); //srcはNULLで呼ばれる場合もあるので、他でチェック - if (src->id == md->master_id + if (src && src->id == md->master_id && md->mode & MOB_MODE_TURNS_AGAINST_BAD_MASTER) { /* If the master hits a monster, have the monster turn against him */ md->master_id = 0; -- cgit v1.2.3-60-g2f50