diff options
-rw-r--r-- | src/char/int_homun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/int_homun.c b/src/char/int_homun.c index 7f6e971aa..8a6089a13 100644 --- a/src/char/int_homun.c +++ b/src/char/int_homun.c @@ -97,13 +97,13 @@ int inter_homun_fromstr(char *str,struct s_homunculus *p) if (sscanf(str+next, "%d,%d,%n", &tmp_int[0], &tmp_int[1], &len) != 2) return 2; - if (tmp_int[0] > HM_SKILLBASE && tmp_int[0] < HM_SKILLBASE+MAX_HOMUNSKILL) + if (tmp_int[0] >= HM_SKILLBASE && tmp_int[0] < HM_SKILLBASE+MAX_HOMUNSKILL) { i = tmp_int[0] - HM_SKILLBASE; p->hskill[i].id = tmp_int[0]; p->hskill[i].lv = tmp_int[1]; } else - ShowError("Read Homun: Unsupported Skill ID %d for homunculus (Homun ID=%d\n", tmp_int[0], p->hom_id); + ShowError("Read Homun: Unsupported Skill ID %d for homunculus (Homun ID=%d\n)", tmp_int[0], p->hom_id); next += len; if (str[next] == ' ') next++; |