summaryrefslogtreecommitdiff
path: root/src/login/login.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-16 03:20:10 -0300
committershennetsind <ind@henn.et>2013-04-16 03:20:10 -0300
commit8ec2352c28f7495b7e3c81a8920e40b57d5074e9 (patch)
tree640dd7fa42c62d1e270d58ccac8a72e644cda3e4 /src/login/login.c
parent08ad9b1257a2db3db9718efe6abbc868ad67118e (diff)
downloadhercules-8ec2352c28f7495b7e3c81a8920e40b57d5074e9.tar.gz
hercules-8ec2352c28f7495b7e3c81a8920e40b57d5074e9.tar.bz2
hercules-8ec2352c28f7495b7e3c81a8920e40b57d5074e9.tar.xz
hercules-8ec2352c28f7495b7e3c81a8920e40b57d5074e9.zip
Fixed Bug #86 (YES 2-DIGITS!)
http://hercules.ws/board/tracker/issue-86-login-id12-bad-values/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/login/login.c')
-rw-r--r--src/login/login.c4
1 files changed, 2 insertions, 2 deletions
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;