From 249550563325af4043ed864f676c18d386428b19 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Feb 2016 17:28:24 +0300 Subject: Fix status effects change for invisible players (tmwa) --- src/net/tmwa/beingrecv.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/net/tmwa/beingrecv.cpp') 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"); -- cgit v1.2.3-70-g09d2