From 3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 May 2016 02:13:28 +0300 Subject: Read whole packet SMSG_BEING_IP_RESPONSE if player not present. --- src/net/tmwa/beingrecv.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp index 0a6a4100e..d5f1dbd6f 100644 --- a/src/net/tmwa/beingrecv.cpp +++ b/src/net/tmwa/beingrecv.cpp @@ -1304,8 +1304,12 @@ void BeingRecv::processIpResponse(Net::MessageIn &msg) Being *const dstBeing = actorManager->findBeing( msg.readBeingId("being id")); + const std::string ip = ipToString(msg.readInt32("ip address")); if (dstBeing) - dstBeing->setIp(ipToString(msg.readInt32("ip address"))); + dstBeing->setIp(ip); + else + DEBUGLOGSTR("invisible player?"); + BLOCK_END("BeingRecv::processIpResponse") } -- cgit v1.2.3-70-g09d2