From ec5df79c4c96468e590e345f4bd3397120160f99 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 11:57:24 +0300 Subject: tmwa: fix reading whole packet SMSG_PLAYER_UPDATE_2. --- src/net/tmwa/beinghandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net') 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) -- cgit v1.2.3-70-g09d2