summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-04 01:12:08 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-04 01:35:18 +0300
commit4e5b2eafb71e5efd9f66db0b73ecc182e8e97395 (patch)
tree02879e3286d4ac03ae47940b83a04d004e48ca45
parent9a9744d1fd18c97eb4381bea0cd0e91aeeb68296 (diff)
downloadhercules-4e5b2eafb71e5efd9f66db0b73ecc182e8e97395.tar.gz
hercules-4e5b2eafb71e5efd9f66db0b73ecc182e8e97395.tar.bz2
hercules-4e5b2eafb71e5efd9f66db0b73ecc182e8e97395.tar.xz
hercules-4e5b2eafb71e5efd9f66db0b73ecc182e8e97395.zip
Fix sending correct packets in pincode_makestate and pincode_editstate.s20180518
-rw-r--r--src/char/pincode.c4
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);
}