From c52b454986d87db85f6740b6a94b025494d1fc23 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Apr 2016 20:28:07 +0300 Subject: Fix reading whole packet SMSG_BEING_RESURRECT (tmwa). --- src/net/tmwa/beingrecv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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") } -- cgit v1.2.3-70-g09d2