From 8ec2352c28f7495b7e3c81a8920e40b57d5074e9 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Tue, 16 Apr 2013 03:20:10 -0300 Subject: Fixed Bug #86 (YES 2-DIGITS!) http://hercules.ws/board/tracker/issue-86-login-id12-bad-values/ Signed-off-by: shennetsind --- src/login/login.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/login/login.c b/src/login/login.c index 16835d675..2b96eefec 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1131,8 +1131,8 @@ int mmo_auth(struct login_session_data* sd, bool isServer) { // update session data sd->account_id = acc.account_id; - sd->login_id1 = rnd(); - sd->login_id2 = rnd(); + sd->login_id1 = rnd() + 1; + sd->login_id2 = rnd() + 1; safestrncpy(sd->lastlogin, acc.lastlogin, sizeof(sd->lastlogin)); sd->sex = acc.sex; sd->group_id = acc.group_id; -- cgit v1.2.3-70-g09d2