summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
Diffstat (limited to 'src/login')
-rw-r--r--src/login/account_txt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/account_txt.c b/src/login/account_txt.c
index 6777c2062..ba3388c57 100644
--- a/src/login/account_txt.c
+++ b/src/login/account_txt.c
@@ -174,7 +174,7 @@ static bool account_db_txt_init(AccountDB* self)
memcpy(tmp, &acc, sizeof(struct mmo_account));
idb_put(accounts, acc.account_id, tmp);
- if( db->next_account_id < acc.account_id)
+ if( acc.account_id >= db->next_account_id )
db->next_account_id = acc.account_id + 1;
}