summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-08-04 20:40:35 +0200
committersfan5 <sfan5@live.de>2019-08-04 20:40:35 +0200
commit800fa2d8e74c62103ed3d915fe81195f6551dc80 (patch)
tree5bd19748f5f0ae1e8653d47d382ea9f44b33baf4 /src/network
parentd0246cfdcce3268e02ae240b6185f45875a97324 (diff)
downloadminetest-800fa2d8e74c62103ed3d915fe81195f6551dc80.tar.gz
minetest-800fa2d8e74c62103ed3d915fe81195f6551dc80.tar.bz2
minetest-800fa2d8e74c62103ed3d915fe81195f6551dc80.zip
Fix binary-string confusion in client network code
Diffstat (limited to 'src/network')
-rw-r--r--src/network/clientpackethandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index 2f5deae2a..1ae47d190 100644
--- a/src/network/clientpackethandler.cpp
+++ b/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);
}