diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-21 21:19:59 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-21 21:19:59 +0000 |
commit | e904419c7b3ff59c4d035bcbe48a79f27c74d18d (patch) | |
tree | e121ffb549be7f06f416f8b0815cdee37b7c29bb /src/char_sql/int_homun.c | |
parent | 5703b27d8c6e7775a165fe29d35020c701b4f286 (diff) | |
download | hercules-e904419c7b3ff59c4d035bcbe48a79f27c74d18d.tar.gz hercules-e904419c7b3ff59c4d035bcbe48a79f27c74d18d.tar.bz2 hercules-e904419c7b3ff59c4d035bcbe48a79f27c74d18d.tar.xz hercules-e904419c7b3ff59c4d035bcbe48a79f27c74d18d.zip |
* Fixed a typo in the status-change saving code (wrong variable used)
* Fixed a case of bad sql code conversion breaking homun skill loading
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11264 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_homun.c')
-rw-r--r-- | src/char_sql/int_homun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char_sql/int_homun.c b/src/char_sql/int_homun.c index 5c0c81f05..bc38e07be 100644 --- a/src/char_sql/int_homun.c +++ b/src/char_sql/int_homun.c @@ -199,7 +199,8 @@ int mapif_load_homunculus(int fd) i = atoi(data); if( i < HM_SKILLBASE || i >= HM_SKILLBASE + MAX_HOMUNSKILL ) continue;// invalid guild skill - homun_pt->hskill[i].id = (unsigned short)i; + i = i - HM_SKILLBASE - 1; + homun_pt->hskill[i].id = (unsigned short)atoi(data); // lv Sql_GetData(sql_handle, 1, &data, NULL); homun_pt->hskill[i].lv = (unsigned short)atoi(data); |