Skip to content

Commit

Permalink
Fix binary-string confusion in client network code
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Aug 4, 2019
1 parent d0246cf commit 800fa2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/clientpackethandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 800fa2d

Please sign in to comment.