summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 02:30:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 02:30:12 +0300
commit0b53e19ac08a2004e3c5e3d67a1146803fbd7afb (patch)
tree798141859ff276514acc4fa83e146212e05aa75a /src/net/tmwa/beinghandler.cpp
parent738c8f8500737e91bfeb46857545b8ea2d1ef972 (diff)
downloadmv-0b53e19ac08a2004e3c5e3d67a1146803fbd7afb.tar.gz
mv-0b53e19ac08a2004e3c5e3d67a1146803fbd7afb.tar.bz2
mv-0b53e19ac08a2004e3c5e3d67a1146803fbd7afb.tar.xz
mv-0b53e19ac08a2004e3c5e3d67a1146803fbd7afb.zip
tmwa: read whole packet SMSG_BEING_CHANGE_LOOKS2.
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index c97f62ae1..272139c3d 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -286,9 +286,14 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const
{ // SMSG_BEING_CHANGE_LOOKS2
id = msg.readInt16("id1");
if (type == 2 || serverVersion > 0)
+ {
id2 = msg.readInt16("id2");
+ }
else
+ {
+ msg.readInt16("id2");
id2 = 1;
+ }
}
if (dstBeing->getType() == ActorType::PLAYER)