From 341e72a4d2a4e9766a6efedf4c9516434455465e Mon Sep 17 00:00:00 2001 From: ultramage Date: Fri, 23 Nov 2007 19:54:56 +0000 Subject: Fixed a badly defined skill range in homunculus loading code (followup to r11731) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11789 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/int_homun.c | 4 ++-- 1 file 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++; -- cgit v1.2.3-70-g09d2