diff options
author | Asheraf <acheraf1998@gmail.com> | 2017-10-09 19:09:26 +0100 |
---|---|---|
committer | Asheraf <asheraf@rian.ma> | 2017-10-21 01:06:50 +0100 |
commit | 9970f10004e9b696961cf2c4c08d734e907eed39 (patch) | |
tree | aa50e1aac68100350d5e7e6a371e8ab2a8342632 | |
parent | 3c606f69ea8b11b3fbfc11f9a4d40223a8877c5d (diff) | |
download | hercules-9970f10004e9b696961cf2c4c08d734e907eed39.tar.gz hercules-9970f10004e9b696961cf2c4c08d734e907eed39.tar.bz2 hercules-9970f10004e9b696961cf2c4c08d734e907eed39.tar.xz hercules-9970f10004e9b696961cf2c4c08d734e907eed39.zip |
Change skill_init_unit_layout to report skill id instead of index
-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 a84955377..967832766 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) |