summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-24 00:36:01 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-24 00:36:01 +0000
commit1f0bc37cc36905aee233498c16500e038d8224e8 (patch)
tree4eda2ffd4121fc4f83ad9a257514638d8c0e079a /src/char/char.c
parent38b080ef8cebdc883caf6bc51ddedddb2ec066aa (diff)
downloadhercules-1f0bc37cc36905aee233498c16500e038d8224e8.tar.gz
hercules-1f0bc37cc36905aee233498c16500e038d8224e8.tar.bz2
hercules-1f0bc37cc36905aee233498c16500e038d8224e8.tar.xz
hercules-1f0bc37cc36905aee233498c16500e038d8224e8.zip
Fixed bugreport:5951 changesex bug regarding it not changing bard/dancer classes after the change has been fixed.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16336 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c3
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);
}