From 04aec6e754983665d18cb54d2c5a219a9c37cfbb Mon Sep 17 00:00:00 2001 From: wizputer Date: Fri, 3 Dec 2004 02:19:22 +0000 Subject: * Fixed int state in SQL login.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@438 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login_sql/login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/login_sql/login.c b/src/login_sql/login.c index b9ac27b55..b9d82f4b9 100644 --- a/src/login_sql/login.c +++ b/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 -- cgit v1.2.3-70-g09d2