diff options
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c index 1f67f8d83..e9cb95c94 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -2091,6 +2091,9 @@ int parse_fromlogin(int fd) class_[i] = (sex ? JOB_KAGEROU : JOB_OBORO); } + if( SQL_ERROR == Sql_Query(sql_handle, "UPDATE `%s` SET `class`='%d', `weapon`='0', `shield`='0', `head_top`='0', `head_mid`='0', `head_bottom`='0' WHERE `char_id`='%d'", char_db, class_[i], char_id[i]) ) + Sql_ShowDebug(sql_handle); + if( guild_id[i] )// If there is a guild, update the guild_member data [Skotlex] inter_guild_sex_changed(guild_id[i], acc, char_id[i], sex); } |