summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-09-12 14:35:52 +0200
committersfan5 <sfan5@live.de>2021-09-12 14:42:01 +0200
commitb480a3e9fd7036208068c4fad410f0cae8fc9c4f (patch)
tree895d49291027262a47a85cc55bb4d9260ca85389
parent75bf9b75caba5fc876f20eabea3fabc142d1b51e (diff)
downloadminetest-b480a3e9fd7036208068c4fad410f0cae8fc9c4f.tar.gz
minetest-b480a3e9fd7036208068c4fad410f0cae8fc9c4f.tar.bz2
minetest-b480a3e9fd7036208068c4fad410f0cae8fc9c4f.zip
Fix broken handling of NodemetaChanged packets
fixes #11610
-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 128240c02..b2965c23d 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -261,7 +261,7 @@ void Client::handleCommand_NodemetaChanged(NetworkPacket *pkt)
return;
std::istringstream is(pkt->readLongString(), std::ios::binary);
- std::stringstream sstr(std::ios::binary);
+ std::stringstream sstr(std::ios::binary | std::ios::in | std::ios::out);
decompressZlib(is, sstr);
NodeMetadataList meta_updates_list(false);