diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-10 10:56:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-10 10:56:24 +0300 |
commit | c809feb2240b210a66a55b46093ba4c0ef46cab7 (patch) | |
tree | 5d4d7ddeb4b576a54b4a336d589ad91fe42a58f7 | |
parent | 0b53e19ac08a2004e3c5e3d67a1146803fbd7afb (diff) | |
download | manaverse-c809feb2240b210a66a55b46093ba4c0ef46cab7.tar.gz manaverse-c809feb2240b210a66a55b46093ba4c0ef46cab7.tar.bz2 manaverse-c809feb2240b210a66a55b46093ba4c0ef46cab7.tar.xz manaverse-c809feb2240b210a66a55b46093ba4c0ef46cab7.zip |
tmwa: fix reading whole packet in processBeingVisibleOrMove.
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 7 |
1 files 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<uint16_t>( |