summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-01 17:28:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-01 17:28:24 +0300
commit249550563325af4043ed864f676c18d386428b19 (patch)
tree064efb81c78950bf149204dc943fe6656b1b11a8
parent478aa714cef69dd526c74196d0cfa484ccc5f420 (diff)
downloadmv-249550563325af4043ed864f676c18d386428b19.tar.gz
mv-249550563325af4043ed864f676c18d386428b19.tar.bz2
mv-249550563325af4043ed864f676c18d386428b19.tar.xz
mv-249550563325af4043ed864f676c18d386428b19.zip
Fix status effects change for invisible players (tmwa)
-rw-r--r--src/net/tmwa/beingrecv.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp
index 74f36c3e4..f46ff373f 100644
--- a/src/net/tmwa/beingrecv.cpp
+++ b/src/net/tmwa/beingrecv.cpp
@@ -1181,7 +1181,14 @@ void BeingRecv::processPlaterStatusChange(Net::MessageIn &msg)
const BeingId id = msg.readBeingId("account id");
Being *const dstBeing = actorManager->findBeing(id);
if (!dstBeing)
+ {
+ logger->log("invisible player?");
+ msg.readInt16("stun mode");
+ msg.readInt16("status effect");
+ msg.readInt16("opt?");
+ msg.readUInt8("Unused?");
return;
+ }
const uint16_t stunMode = msg.readInt16("stun mode");
uint32_t statusEffects = msg.readInt16("status effect");