diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-18 21:41:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-23 17:20:54 +0300 |
commit | 4fe5bcdd7173207d95f02562ad301275cbabe137 (patch) | |
tree | a9d9408e69ab89a0740b3724af7dbe71353ecaa1 /src/net/eathena/charserverrecv.cpp | |
parent | 82e688c092ced4f6b9bd23797a671960139f48d6 (diff) | |
download | plus-4fe5bcdd7173207d95f02562ad301275cbabe137.tar.gz plus-4fe5bcdd7173207d95f02562ad301275cbabe137.tar.bz2 plus-4fe5bcdd7173207d95f02562ad301275cbabe137.tar.xz plus-4fe5bcdd7173207d95f02562ad301275cbabe137.zip |
Read always packet lens and not skip it in net code.
Diffstat (limited to 'src/net/eathena/charserverrecv.cpp')
-rw-r--r-- | src/net/eathena/charserverrecv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/charserverrecv.cpp b/src/net/eathena/charserverrecv.cpp index ec906f081..5ff1911b9 100644 --- a/src/net/eathena/charserverrecv.cpp +++ b/src/net/eathena/charserverrecv.cpp @@ -219,7 +219,7 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg, void CharServerRecv::processCharLogin(Net::MessageIn &msg) { - msg.skip(2, "packet len"); + msg.readInt16("packet len"); int slots = 9; int offset = 0; if (packetVersion >= 20100413) @@ -532,7 +532,7 @@ void CharServerRecv::processCharDelete2CancelAck(Net::MessageIn &msg) void CharServerRecv::processCharCharacters(Net::MessageIn &msg) { - msg.skip(2, "packet len"); + msg.readInt16("packet len"); delete_all(Net::CharServerHandler::mCharacters); Net::CharServerHandler::mCharacters.clear(); |