diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-05-04 01:12:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-05-04 01:28:38 +0300 |
commit | fa5cc0300a337d4bb242fc10f6747fac1f1752c4 (patch) | |
tree | ec400a9d4f23154f8d1c202bd6b7179ab8a485dc | |
parent | d60a990f282693412fcdfd62ee4152c107cbf5a9 (diff) | |
download | hercules-fa5cc0300a337d4bb242fc10f6747fac1f1752c4.tar.gz hercules-fa5cc0300a337d4bb242fc10f6747fac1f1752c4.tar.bz2 hercules-fa5cc0300a337d4bb242fc10f6747fac1f1752c4.tar.xz hercules-fa5cc0300a337d4bb242fc10f6747fac1f1752c4.zip |
Fix sending correct packets in pincode_makestate and pincode_editstate.
-rw-r--r-- | src/char/pincode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/pincode.c b/src/char/pincode.c index 3b22a0a8c..73d9809fa 100644 --- a/src/char/pincode.c +++ b/src/char/pincode.c @@ -206,7 +206,7 @@ void pincode_makestate(int fd, struct char_session_data *sd, enum pincode_make_r WFIFOHEAD(fd, 8); WFIFOW(fd, 0) = 0x8bb; WFIFOW(fd, 2) = state; - WFIFOW(fd, 4) = 0; + WFIFOL(fd, 4) = sd->pincode_seed; WFIFOSET(fd, 8); } @@ -224,7 +224,7 @@ void pincode_editstate(int fd, struct char_session_data *sd, enum pincode_edit_r WFIFOHEAD(fd, 8); WFIFOW(fd, 0) = 0x8bf; WFIFOW(fd, 2) = state; - WFIFOW(fd, 4) = sd->pincode_seed = rnd() % 0xFFFF; + WFIFOL(fd, 4) = sd->pincode_seed = rnd() % 0xFFFF; WFIFOSET(fd, 8); } |