Skip to content

Commit

Permalink
Fixed a mapserver crash (too small allocation)
Browse files Browse the repository at this point in the history
- Follow-up to e3eac13
- Fixes #1074

Signed-off-by: Haru <haru@dotalux.com>
  • Loading branch information
MishimaHaruna committed Jan 8, 2016
1 parent 3d90889 commit 2af2132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -16260,7 +16260,7 @@ struct skill_unit_group* skill_initunitgroup (struct block_list* src, int count,
group->guild_id = status->get_guild_id(src);
group->bg_id = bg->team_get_id(src);
group->group_id = skill->get_new_group_id();
CREATE(group->unit.data, struct skill_unit, 1);
CREATE(group->unit.data, struct skill_unit, count);
group->unit.count = count;
group->alive_count = 0;
group->val1 = 0;
Expand Down

0 comments on commit 2af2132

Please sign in to comment.