diff options
author | Haru <haru@dotalux.com> | 2016-01-08 16:51:59 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-08 16:52:35 +0100 |
commit | 2af2132c3fd39af714eb9819bbdd8d857e651915 (patch) | |
tree | 84cd732034efaa737bf8950c5ae3fcb147fa0f6e /src/map/skill.c | |
parent | 3d90889ad1c4e53bf8b61e478fc83f123076422b (diff) | |
download | hercules-2af2132c3fd39af714eb9819bbdd8d857e651915.tar.gz hercules-2af2132c3fd39af714eb9819bbdd8d857e651915.tar.bz2 hercules-2af2132c3fd39af714eb9819bbdd8d857e651915.tar.xz hercules-2af2132c3fd39af714eb9819bbdd8d857e651915.zip |
Fixed a mapserver crash (too small allocation)
- Follow-up to e3eac134b1607cfe78331e298aaa20b260662571
- Fixes #1074
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/skill.c')
-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 d4d70d115..b3c264e43 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -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; |