diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-01 17:28:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-01 17:28:24 +0300 |
commit | 249550563325af4043ed864f676c18d386428b19 (patch) | |
tree | 064efb81c78950bf149204dc943fe6656b1b11a8 /src | |
parent | 478aa714cef69dd526c74196d0cfa484ccc5f420 (diff) | |
download | manaverse-249550563325af4043ed864f676c18d386428b19.tar.gz manaverse-249550563325af4043ed864f676c18d386428b19.tar.bz2 manaverse-249550563325af4043ed864f676c18d386428b19.tar.xz manaverse-249550563325af4043ed864f676c18d386428b19.zip |
Fix status effects change for invisible players (tmwa)
Diffstat (limited to 'src')
-rw-r--r-- | src/net/tmwa/beingrecv.cpp | 7 |
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"); |