From b1b59f3402544e00d159c75b178aeaf11c5fa44b Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 8 Aug 2006 03:07:57 +0000 Subject: - Fixed the login-sql server replying to the change-sex packet with the wrong gender, causing the char-server to screw-up job-change updates. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8180 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login_sql/login.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/login_sql/login.c') diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 78f7da3ca..4c9393bc8 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1242,10 +1242,10 @@ int parse_fromchar(int fd){ } if (strcmpi(sql_row[0], "M") == 0) - sex = 1; + sex = 0; //Change to female else - sex = 0; - sprintf(tmpsql,"UPDATE `%s` SET `sex` = '%c' WHERE `%s` = '%d'", login_db, (sex==0?'M':'F'), login_db_account_id, acc); + sex = 1; //Change to make + sprintf(tmpsql,"UPDATE `%s` SET `sex` = '%c' WHERE `%s` = '%d'", login_db, (sex?'M':'F'), login_db_account_id, acc); //query if(mysql_query(&mysql_handle, tmpsql)) { ShowSQL("DB error - %s\n",mysql_error(&mysql_handle)); -- cgit v1.2.3-70-g09d2