summaryrefslogtreecommitdiff
path: root/src/char/int_homun.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-23 19:54:56 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-23 19:54:56 +0000
commit341e72a4d2a4e9766a6efedf4c9516434455465e (patch)
tree94d5d0058ca2f3bb8b38a84f15c806b9b6ac3775 /src/char/int_homun.c
parent74fa81ac159d73447ff6cc3e6ef9c70b29280ade (diff)
downloadhercules-341e72a4d2a4e9766a6efedf4c9516434455465e.tar.gz
hercules-341e72a4d2a4e9766a6efedf4c9516434455465e.tar.bz2
hercules-341e72a4d2a4e9766a6efedf4c9516434455465e.tar.xz
hercules-341e72a4d2a4e9766a6efedf4c9516434455465e.zip
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
Diffstat (limited to 'src/char/int_homun.c')
-rw-r--r--src/char/int_homun.c4
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++;