summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-18 21:41:00 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-23 17:20:54 +0300
commit4fe5bcdd7173207d95f02562ad301275cbabe137 (patch)
treea9d9408e69ab89a0740b3724af7dbe71353ecaa1 /src
parent82e688c092ced4f6b9bd23797a671960139f48d6 (diff)
downloadmanaplus-4fe5bcdd7173207d95f02562ad301275cbabe137.tar.gz
manaplus-4fe5bcdd7173207d95f02562ad301275cbabe137.tar.bz2
manaplus-4fe5bcdd7173207d95f02562ad301275cbabe137.tar.xz
manaplus-4fe5bcdd7173207d95f02562ad301275cbabe137.zip
Read always packet lens and not skip it in net code.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/charserverrecv.cpp4
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();