summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/char.c')
-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)) {