diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-10 11:57:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-10 11:57:24 +0300 |
commit | ec5df79c4c96468e590e345f4bd3397120160f99 (patch) | |
tree | 16c7a6e17d837fa794ad14ace92c314eaba94b42 /src | |
parent | d0989dacb3cf86ba03a914b8c508a63e42c64790 (diff) | |
download | plus-ec5df79c4c96468e590e345f4bd3397120160f99.tar.gz plus-ec5df79c4c96468e590e345f4bd3397120160f99.tar.bz2 plus-ec5df79c4c96468e590e345f4bd3397120160f99.tar.xz plus-ec5df79c4c96468e590e345f4bd3397120160f99.zip |
tmwa: fix reading whole packet SMSG_PLAYER_UPDATE_2.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index a4515debb..2b36828b5 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -677,7 +677,8 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg) const if (level) dstBeing->setLevel(level); - msg.readUInt8("unused"); + if (msgType != 2) + msg.readUInt8("unused"); if (dstBeing->getType() != ActorType::PLAYER || msgType != 3) |