summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-14 09:31:47 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-14 09:31:47 +0000
commitfefc60d0a202e489ebc0d999f13a0abcc638518a (patch)
treefba77837fbe8e56d7f71cd3a83716a231ba993b6 /src/char
parente932e59a70601716c75daffa6cc43cbfcf0e2334 (diff)
downloadhercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.tar.gz
hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.tar.bz2
hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.tar.xz
hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.zip
Fixed some homunculus skill offset calculation mistakes (bugreport:363)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11731 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-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 545f0d08c..7f6e971aa 100644
--- a/src/char/int_homun.c
+++ b/src/char/int_homun.c
@@ -97,9 +97,9 @@ 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 -1;
+ i = tmp_int[0] - HM_SKILLBASE;
p->hskill[i].id = tmp_int[0];
p->hskill[i].lv = tmp_int[1];
} else