summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 10:56:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 10:56:24 +0300
commitc809feb2240b210a66a55b46093ba4c0ef46cab7 (patch)
tree5d4d7ddeb4b576a54b4a336d589ad91fe42a58f7 /src/net/tmwa/beinghandler.cpp
parent0b53e19ac08a2004e3c5e3d67a1146803fbd7afb (diff)
downloadmanaverse-c809feb2240b210a66a55b46093ba4c0ef46cab7.tar.gz
manaverse-c809feb2240b210a66a55b46093ba4c0ef46cab7.tar.bz2
manaverse-c809feb2240b210a66a55b46093ba4c0ef46cab7.tar.xz
manaverse-c809feb2240b210a66a55b46093ba4c0ef46cab7.zip
tmwa: fix reading whole packet in processBeingVisibleOrMove.
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp7
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>(