swtcompilationerror (followup to r13149)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13151 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
c6675b9cea
commit
bf86e54281
@ -127,14 +127,14 @@ static bool account_db_txt_init(AccountDB* self)
|
|||||||
if( line[0] == '/' && line[1] == '/' )
|
if( line[0] == '/' && line[1] == '/' )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
int n = 0;
|
n = 0;
|
||||||
if( sscanf(line, "%d%n", &v, &n) == 1 && (line[n] == '\n' || line[n] == '\r') )
|
if( sscanf(line, "%d%n", &v, &n) == 1 && (line[n] == '\n' || line[n] == '\r') )
|
||||||
{// format version definition
|
{// format version definition
|
||||||
version = v;
|
version = v;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int n = 0;
|
n = 0;
|
||||||
if( sscanf(line, "%d\t%%newid%%%n", &account_id, &n) == 1 && (line[n] == '\n' || line[n] == '\r') )
|
if( sscanf(line, "%d\t%%newid%%%n", &account_id, &n) == 1 && (line[n] == '\n' || line[n] == '\r') )
|
||||||
{// auto-increment
|
{// auto-increment
|
||||||
if( account_id > db->next_account_id )
|
if( account_id > db->next_account_id )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user