summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-05 07:04:22 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-05 07:04:22 +0000
commit8e87d2d3248835de4a3677fa16c8abf31e36e570 (patch)
tree06e7f070863e2eeab7b3af9d434a3632045d454c /src/map/mob.c
parentdc28241d3c6716fed00b78d9a6977f89c4644178 (diff)
downloadhercules-8e87d2d3248835de4a3677fa16c8abf31e36e570.tar.gz
hercules-8e87d2d3248835de4a3677fa16c8abf31e36e570.tar.bz2
hercules-8e87d2d3248835de4a3677fa16c8abf31e36e570.tar.xz
hercules-8e87d2d3248835de4a3677fa16c8abf31e36e570.zip
* Fixed skill_require_db reading somehow getting corrupted if weapons usable for the skill is more than 20
* Fixed @killmonster crashing the server with summoned monsters git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@908 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 4f80c23bb..21ec6c585 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2298,7 +2298,7 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type)
mobskill_use_id(md,&md->bl,skillidx);//Ž©”š‰r¥ŠJŽn
md->state.special_mob_ai++;
}
- if (md->master_id==src->id)
+ if (src && md->master_id==src->id)
md->target_dir=map_calc_dir(src,md->bl.x,md->bl.y)+1;
}