summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 11:57:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 11:57:24 +0300
commitec5df79c4c96468e590e345f4bd3397120160f99 (patch)
tree16c7a6e17d837fa794ad14ace92c314eaba94b42 /src/net
parentd0989dacb3cf86ba03a914b8c508a63e42c64790 (diff)
downloadplus-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/net')
-rw-r--r--src/net/tmwa/beinghandler.cpp3
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)