summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-24 03:47:27 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-24 03:47:27 +0000
commitb1762c30a06f3ddf0690d8304342671b02b1ed66 (patch)
treec46ff71f5d87717a2441adabfc18045fd34ef07e
parentf3d5e6ef7b9e66bcf04ee91b0cd706c5a5c70a12 (diff)
downloadhercules-b1762c30a06f3ddf0690d8304342671b02b1ed66.tar.gz
hercules-b1762c30a06f3ddf0690d8304342671b02b1ed66.tar.bz2
hercules-b1762c30a06f3ddf0690d8304342671b02b1ed66.tar.xz
hercules-b1762c30a06f3ddf0690d8304342671b02b1ed66.zip
oops
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@765 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/char_sql/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index f637e0683..7eb9a1929 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -544,8 +544,8 @@ int mmo_char_tosql(int char_id, struct mmo_charstatus *p){
diff = 0;
for(i=0;i<MAX_SKILL;i++) {
- if ((p.skill[i].lv != 0) && (p.skill[i].id == 0))
- p->skill[i].id = i;
+ if ((p->skill[i].lv != 0) && (p->skill[i].id == 0))
+ p->skill[i].id = i; // Fix skill tree
if((p->skill[i].id != cp->skill[i].id) || (p->skill[i].lv != cp->skill[i].lv) ||
(p->skill[i].flag != cp->skill[i].flag)) {