diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-22 09:00:57 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-22 09:00:57 +0000 |
commit | 5f857bae116433a2a0fd38b8c3539352c5453f7a (patch) | |
tree | 52e60dcc8ba4ee1a7ddd2475eed6b63c977709b4 /src/map/mob.h | |
parent | b5bbb9cc74ef82312be3f45b78634e238e4941c8 (diff) | |
download | hercules-5f857bae116433a2a0fd38b8c3539352c5453f7a.tar.gz hercules-5f857bae116433a2a0fd38b8c3539352c5453f7a.tar.bz2 hercules-5f857bae116433a2a0fd38b8c3539352c5453f7a.tar.xz hercules-5f857bae116433a2a0fd38b8c3539352c5453f7a.zip |
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
Diffstat (limited to 'src/map/mob.h')
-rw-r--r-- | src/map/mob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.h b/src/map/mob.h index a731df847..69b555deb 100644 --- a/src/map/mob.h +++ b/src/map/mob.h @@ -178,7 +178,7 @@ void mob_revive(struct mob_data *md, unsigned int hp); void mob_heal(struct mob_data *md,unsigned int heal); #define mob_stop_walking(md, type) unit_stop_walking(&(md)->bl, type) -#define mob_stop_attack(md) { if((md)->ud.attacktimer != -1) unit_stop_attack(&(md)->bl); } +#define mob_stop_attack(md) unit_stop_attack(&(md)->bl) void mob_clear_spawninfo(); int do_init_mob(void); |