diff options
author | Haru <haru@dotalux.com> | 2017-10-21 18:02:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-21 18:02:27 +0200 |
commit | 4a80da20b963c9147ba04734ed4ff75a0ffd7132 (patch) | |
tree | 2a9e48fad66e186d920e6db46696edcb6f10e115 /src/map/skill.c | |
parent | a2db3515acbd445ec599b862f6e743058622e5c2 (diff) | |
parent | 9970f10004e9b696961cf2c4c08d734e907eed39 (diff) | |
download | hercules-4a80da20b963c9147ba04734ed4ff75a0ffd7132.tar.gz hercules-4a80da20b963c9147ba04734ed4ff75a0ffd7132.tar.bz2 hercules-4a80da20b963c9147ba04734ed4ff75a0ffd7132.tar.xz hercules-4a80da20b963c9147ba04734ed4ff75a0ffd7132.zip |
Merge pull request #1854 from Asheraf/skill
Change skill_init_unit_layout to report skill id instead of index
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index a8ced2ccf..726deaa9a 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -18984,7 +18984,8 @@ void skill_init_unit_layout (void) void skill_init_unit_layout_unknown(int skill_idx) { - ShowError("unknown unit layout at skill %d\n", skill_idx); + Assert_retv(skill_idx >= 0 && skill_idx < MAX_SKILL_DB); + ShowError("unknown unit layout at skill %d\n", skill->dbs->db[skill_idx].nameid); } int skill_block_check(struct block_list *bl, sc_type type , uint16 skill_id) |