diff options
author | Haru <haru@dotalux.com> | 2015-08-24 01:54:15 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-26 22:41:28 +0200 |
commit | d2e3acbe3c388d36b8d2311d0f23b38babc1aae5 (patch) | |
tree | 16c6510cbf41b8df261f7f6f601e855dc552ff99 /src/map/skill.h | |
parent | 012e290896640e367a39149726e3af303709cfc5 (diff) | |
download | hercules-d2e3acbe3c388d36b8d2311d0f23b38babc1aae5.tar.gz hercules-d2e3acbe3c388d36b8d2311d0f23b38babc1aae5.tar.bz2 hercules-d2e3acbe3c388d36b8d2311d0f23b38babc1aae5.tar.xz hercules-d2e3acbe3c388d36b8d2311d0f23b38babc1aae5.zip |
Fixed a faulty usage of sg->unit in land skill code
- Changed sg->unit and sg->unit_count into an explicit vector struct,
to enforce the correct access.
- Related: rathena/rathena#583
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/skill.h')
-rw-r--r-- | src/map/skill.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/skill.h b/src/map/skill.h index 1db03bcd1..b8be9ac8f 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -1712,9 +1712,12 @@ struct skill_unit_group { char *valstr; int unit_id; int group_id; - int unit_count,alive_count; + int alive_count; int item_id; //store item used. - struct skill_unit *unit; + struct { + int count; + struct skill_unit *data; + } unit; struct { unsigned ammo_consume : 1; unsigned song_dance : 2; //0x1 Song/Dance, 0x2 Ensemble |