浏览代码

* Fixed int state in SQL login.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@438 54d463be-8e91-2dee-dedb-b68131a5f0ec
wizputer 20 年之前
父节点
当前提交
13bb947d22
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 2 0
      Changelog.txt
  2. 2 1
      src/login_sql/login.c

+ 2 - 0
Changelog.txt

@@ -1,4 +1,6 @@
 Date	Added
+12/02
+	* Fixed int state in SQL login.c [Wizputer]
 11/30
 	* "Beautified" sql login-server [Wizputer]
 

+ 2 - 1
src/login_sql/login.c

@@ -300,7 +300,7 @@ int mmo_auth( struct mmo_account* account , int fd){
 	char ip[16];
 	
 	int encpasswdok = 0;
-	int state = atoi(sql_row[9]);
+	int state;
 	
 	#ifdef PASSWORDENC
 	char logbuf[1024], *p = logbuf;
@@ -362,6 +362,7 @@ int mmo_auth( struct mmo_account* account , int fd){
 	// Check status
 
 	account->ban_until_time = atol(sql_row[8]);
+	state = atoi(sql_row[9]);
 
 	if (state == -3) {
 		//id is banned