summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/pet.c2
-rw-r--r--src/map/skill.c1
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;
}