From 5f857bae116433a2a0fd38b8c3539352c5453f7a Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 22 Dec 2007 09:00:57 +0000 Subject: Fixed mob AI code iterating over non-mob objects without checking, when monster_ai flag 0x20 is set (caused by r11943) Cleaned up macros that wrap unit_stop_attack() (bugreport:357) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11957 54d463be-8e91-2dee-dedb-b68131a5f0ec --- 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 8b01df25b..1c28584d3 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1454,7 +1454,7 @@ static int mob_ai_hard(int tid,unsigned int tick,int id,int data) { if (battle_config.mob_ai&0x20) - map_foreachiddb(mob_ai_sub_lazy,tick); + map_foreachmob(mob_ai_sub_lazy,tick); else clif_foreachclient(mob_ai_sub_foreachclient,tick); -- cgit v1.2.3-60-g2f50