summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-27 20:28:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-27 20:28:07 +0300
commitc52b454986d87db85f6740b6a94b025494d1fc23 (patch)
tree69a31bd10ae37881073257728bb31ba4ed3bc854 /src/net
parent64815b311e47395638a2bf5ea80f949526942570 (diff)
downloadplus-c52b454986d87db85f6740b6a94b025494d1fc23.tar.gz
plus-c52b454986d87db85f6740b6a94b025494d1fc23.tar.bz2
plus-c52b454986d87db85f6740b6a94b025494d1fc23.tar.xz
plus-c52b454986d87db85f6740b6a94b025494d1fc23.zip
Fix reading whole packet SMSG_BEING_RESURRECT (tmwa).
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tmwa/beingrecv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp
index f627616f6..0a6a4100e 100644
--- a/src/net/tmwa/beingrecv.cpp
+++ b/src/net/tmwa/beingrecv.cpp
@@ -1203,7 +1203,7 @@ void BeingRecv::processBeingResurrect(Net::MessageIn &msg)
if (!dstBeing)
{
DEBUGLOGSTR("insible player?");
- msg.readUInt8("flag?");
+ msg.readInt16("flag?");
BLOCK_END("BeingRecv::processBeingResurrect")
return;
}
@@ -1212,7 +1212,7 @@ void BeingRecv::processBeingResurrect(Net::MessageIn &msg)
if (dstBeing == localPlayer->getTarget())
localPlayer->stopAttack();
- if (msg.readUInt8("flag?") == 1U)
+ if (msg.readInt16("flag?") == 1)
dstBeing->setAction(BeingAction::STAND, 0);
BLOCK_END("BeingRecv::processBeingResurrect")
}