mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Make sure relevant std::stringstreams are set to binary
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user