diff options
author | Bjテクrn Lindeijer <bjorn@lindeijer.nl> | 2008-10-12 12:55:35 +0000 |
---|---|---|
committer | Bjテクrn Lindeijer <bjorn@lindeijer.nl> | 2008-10-12 12:55:35 +0000 |
commit | cc3998bdd9ceff47fcc5577a3088fbfb5b455076 (patch) | |
tree | 958341021948ae208c2e151cb93282d6adec92d6 /src/map | |
parent | 5c6cd20e907d21b1a3c229a5505bd5b50f468265 (diff) | |
download | tmwa-cc3998bdd9ceff47fcc5577a3088fbfb5b455076.tar.gz tmwa-cc3998bdd9ceff47fcc5577a3088fbfb5b455076.tar.bz2 tmwa-cc3998bdd9ceff47fcc5577a3088fbfb5b455076.tar.xz tmwa-cc3998bdd9ceff47fcc5577a3088fbfb5b455076.zip |
Don't forget to check 'src' for 0, as is done later on as well
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |