summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-07-06 13:55:52 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-07-06 13:55:52 +0200
commitddfdb774945e1a579d0e644ee339a88c25128f72 (patch)
tree15caa52d79b368ad92aea9a7311ab8f246c4c5a8 /src
parentf2d7f16d0e4162afa2dd32d1bab4e76550d8ca59 (diff)
downloadhercules-ddfdb774945e1a579d0e644ee339a88c25128f72.tar.gz
hercules-ddfdb774945e1a579d0e644ee339a88c25128f72.tar.bz2
hercules-ddfdb774945e1a579d0e644ee339a88c25128f72.tar.xz
hercules-ddfdb774945e1a579d0e644ee339a88c25128f72.zip
Remove unnecessary gender update SQL query from char_changecharsex()
Gender gets updated in char_change_sex_sub() so we can safely skip it in char_changecharsex().
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 04a72fb6b..5add42e75 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3538,10 +3538,6 @@ static int char_changecharsex(int char_id, int sex)
SQL->GetData(inter->sql_handle, 2, &data, NULL); guild_id = atoi(data);
SQL->FreeResult(inter->sql_handle);
- if (SQL_ERROR == SQL->Query(inter->sql_handle, "UPDATE `%s` SET `sex` = '%c' WHERE `char_id` = '%d'", char_db, sex == SEX_MALE ? 'M' : 'F', char_id)) {
- Sql_ShowDebug(inter->sql_handle);
- return 1;
- }
char_change_sex_sub(sex, account_id, char_id, class, guild_id);
// disconnect player if online on char-server