|
@@ -347,7 +347,7 @@ int char_mmo_char_tosql(int char_id, struct mmo_charstatus* p){
|
|
|
"`last_map`='%s',`last_x`='%d',`last_y`='%d',`save_map`='%s',`save_x`='%d',`save_y`='%d', `rename`='%d',"
|
|
|
"`delete_date`='%lu',`robe`='%d',`moves`='%d',`font`='%u'"
|
|
|
" WHERE `account_id`='%d' AND `char_id` = '%d'",
|
|
|
- char_db, p->base_level, p->job_level,
|
|
|
+ schema_config.char_db, p->base_level, p->job_level,
|
|
|
p->base_exp, p->job_exp, p->zeny,
|
|
|
p->max_hp, p->hp, p->max_sp, p->sp, p->status_point, p->skill_point,
|
|
|
p->str, p->agi, p->vit, p->int_, p->dex, p->luk,
|
|
@@ -990,7 +990,7 @@ int char_mmo_char_fromsql(int char_id, struct mmo_charstatus* p, bool load_every
|
|
|
"`hair_color`,`clothes_color`,`weapon`,`shield`,`head_top`,`head_mid`,`head_bottom`,`last_map`,`last_x`,`last_y`,"
|
|
|
"`save_map`,`save_x`,`save_y`,`partner_id`,`father`,`mother`,`child`,`fame`,`rename`,`delete_date`,`robe`, `moves`,"
|
|
|
"`unban_time`,`font`"
|
|
|
- " FROM `%s` WHERE `char_id`=? LIMIT 1", char_db)
|
|
|
+ " FROM `%s` WHERE `char_id`=? LIMIT 1", schema_config.char_db)
|
|
|
|| SQL_ERROR == SqlStmt_BindParam(stmt, 0, SQLDT_INT, &char_id, 0)
|
|
|
|| SQL_ERROR == SqlStmt_Execute(stmt)
|
|
|
|| SQL_ERROR == SqlStmt_BindColumn(stmt, 0, SQLDT_INT, &p->char_id, 0, NULL, NULL)
|