From c809feb2240b210a66a55b46093ba4c0ef46cab7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 10:56:24 +0300 Subject: tmwa: fix reading whole packet in processBeingVisibleOrMove. --- src/net/tmwa/beinghandler.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index 272139c3d..dc5b1842d 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -974,10 +974,9 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg) msg.readUInt8("unknown"); msg.readUInt8("unknown"); - msg.readInt16("unknown"); - - if (visible) - msg.readUInt8("unknown"); + msg.readUInt8("unknown"); + msg.readUInt8("unknown"); + msg.readUInt8("unknown"); dstBeing->setStunMode(stunMode); dstBeing->setStatusEffectBlock(0, static_cast( -- cgit v1.2.3-70-g09d2