diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index d70e6c262..5696c82c5 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -9375,7 +9375,7 @@ struct skill_unit_group *skill_initunitgroup(struct block_list *src, group->group_id=skill_unit_group_newid++;
if(skill_unit_group_newid<=0)
skill_unit_group_newid = MAX_SKILL_DB;
- group->unit=(struct skill_unit *)aMalloc(count*sizeof(struct skill_unit));
+ group->unit=(struct skill_unit *)aCalloc(count,sizeof(struct skill_unit));
group->unit_count=count;
group->val1=group->val2=group->val3=0;
group->skill_id=skillid;
|