Skip to content
Permalink
Browse files

Fix binary-string confusion in client network code

  • Loading branch information...
sfan5 committed Aug 4, 2019
1 parent d0246cf commit 800fa2d8e74c62103ed3d915fe81195f6551dc80
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/network/clientpackethandler.cpp
@@ -900,7 +900,7 @@ void Client::handleCommand_DetachedInventory(NetworkPacket* pkt)
u16 ignore;
*pkt >> ignore; // this used to be the length of the following string, ignore it

std::string contents = pkt->getRemainingString();
std::string contents(pkt->getRemainingString(), pkt->getRemainingBytes());
std::istringstream is(contents, std::ios::binary);
inv->deSerialize(is);
}

0 comments on commit 800fa2d

Please sign in to comment.
You can’t perform that action at this time.