diff options
-rw-r--r-- | src/echar/char.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/echar/char.c b/src/echar/char.c index fb5ebdc..f8a003e 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -77,6 +77,16 @@ void echar_parse_char_create_new_char(int *fdPtr, struct char_session_data* sd) char_dat.clothes_color = look; chr->mmo_char_tosql(result, &char_dat); + char cSex = 'U'; + if (sex == SEX_MALE) + cSex = 'M'; + else if (sex == SEX_FEMALE) + cSex = 'F'; + + if (SQL_ERROR == SQL->Query(inter->sql_handle, "UPDATE `%s` SET `sex` = '%c' WHERE `char_id` = '%d'", "char", cSex, char_dat.char_id)) + { + Sql_ShowDebug(inter->sql_handle); + } } chr->creation_ok(fd, &char_dat); |