diff options
-rw-r--r-- | src/map/skill.c | 4 | ||||
-rw-r--r-- | src/map/skill.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index ed69b8c0f..70cffdda4 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -19427,7 +19427,7 @@ static void skill_init_unit_layout(void) } break; default: - skill->init_unit_layout_unknown(i); + skill->init_unit_layout_unknown(i, pos); break; } if (!skill->dbs->unit_layout[pos].count) @@ -19528,7 +19528,7 @@ static void skill_init_unit_layout(void) } -static void skill_init_unit_layout_unknown(int skill_idx) +static void skill_init_unit_layout_unknown(int skill_idx, int pos) { Assert_retv(skill_idx >= 0 && skill_idx < MAX_SKILL_DB); ShowError("unknown unit layout at skill %d\n", skill->dbs->db[skill_idx].nameid); diff --git a/src/map/skill.h b/src/map/skill.h index 736417649..97134224e 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -2093,7 +2093,7 @@ struct skill_interface { int (*unit_timer) (int tid, int64 tick, int id, intptr_t data); int (*unit_timer_sub) (union DBKey key, struct DBData *data, va_list ap); void (*init_unit_layout) (void); - void (*init_unit_layout_unknown) (int skill_idx); + void (*init_unit_layout_unknown) (int skill_idx, int pos); void (*validate_hittype) (struct config_setting_t *conf, struct s_skill_db *sk); void (*validate_skilltype) (struct config_setting_t *conf, struct s_skill_db *sk); void (*validate_attacktype) (struct config_setting_t *conf, struct s_skill_db *sk); |