diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-01 04:19:43 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-01 04:19:43 +0000 |
commit | b571f42591a62f67623f7e419353196b79125860 (patch) | |
tree | 3303fcd71d839d36c6ba59b1db110789d77bd732 | |
parent | 710664d4dc998aacd6b152ac3dbe32f2acd933b0 (diff) | |
download | hercules-b571f42591a62f67623f7e419353196b79125860.tar.gz hercules-b571f42591a62f67623f7e419353196b79125860.tar.bz2 hercules-b571f42591a62f67623f7e419353196b79125860.tar.xz hercules-b571f42591a62f67623f7e419353196b79125860.zip |
- Fixed a small typo/logic-error in pet_ai_sub_hard
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6424 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/pet.c | 2 | ||||
-rw-r--r-- | src/map/skill.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 62161dd87..79645cda8 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -958,7 +958,7 @@ static int pet_ai_sub_hard(struct pet_data *pd,unsigned int tick) pd->speed = (sd->speed>>1);
if(pd->speed <= 0)
pd->speed = 1;
- if (!unit_walktobl(&pd->bl, &sd->bl, 3, 0));
+ if (!unit_walktobl(&pd->bl, &sd->bl, 3, 0))
pet_randomwalk(pd,tick);
return 0;
}
diff --git a/src/map/skill.c b/src/map/skill.c index 1103d6c19..302505997 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -9490,7 +9490,6 @@ int skill_delunitgroup(struct block_list *src, struct skill_unit_group *group) skill_delunit(&group->unit[i]);
}
if(group->valstr!=NULL){
- //Supposedly Free remembers the size of the original Calloc/Malloc, so this should be safe [Skotlex]
aFree(group->valstr);
group->valstr=NULL;
}
|