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/pet.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/pet.h')
-rw-r--r-- | src/map/pet.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |