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/pet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pet.h') diff --git a/src/map/pet.h b/src/map/pet.h index 835d8a04d..b5dda0944 100644 --- a/src/map/pet.h +++ b/src/map/pet.h @@ -59,7 +59,7 @@ int pet_recovery_timer(int tid,unsigned int tick,int id,int data); // [Valaris] int pet_heal_timer(int tid,unsigned int tick,int id,int data); // [Valaris] #define pet_stop_walking(pd, type) unit_stop_walking(&(pd)->bl, type) -#define pet_stop_attack(pd) { if((pd)->ud.attacktimer != -1) unit_stop_attack(&(pd)->bl); } +#define pet_stop_attack(pd) unit_stop_attack(&(pd)->bl) int read_petdb(void); int do_init_pet(void); -- cgit v1.2.3-70-g09d2