diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-27 20:28:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-27 20:28:07 +0300 |
commit | c52b454986d87db85f6740b6a94b025494d1fc23 (patch) | |
tree | 69a31bd10ae37881073257728bb31ba4ed3bc854 | |
parent | 64815b311e47395638a2bf5ea80f949526942570 (diff) | |
download | mv-c52b454986d87db85f6740b6a94b025494d1fc23.tar.gz mv-c52b454986d87db85f6740b6a94b025494d1fc23.tar.bz2 mv-c52b454986d87db85f6740b6a94b025494d1fc23.tar.xz mv-c52b454986d87db85f6740b6a94b025494d1fc23.zip |
Fix reading whole packet SMSG_BEING_RESURRECT (tmwa).
-rw-r--r-- | src/net/tmwa/beingrecv.cpp | 4 |
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") } |