mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Make sure relevant std::stringstreams are set to binary
This commit is contained in:
parent
766e885a1b
commit
75bf9b75ca
17 changed files with 54 additions and 66 deletions
|
@ -60,7 +60,7 @@ bool ItemStackMetadata::setString(const std::string &name, const std::string &va
|
|||
|
||||
void ItemStackMetadata::serialize(std::ostream &os) const
|
||||
{
|
||||
std::ostringstream os2;
|
||||
std::ostringstream os2(std::ios_base::binary);
|
||||
os2 << DESERIALIZE_START;
|
||||
for (const auto &stringvar : m_stringvars) {
|
||||
if (!stringvar.first.empty() || !stringvar.second.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue