1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
AlexVinS 2017-08-11 17:38:28 +03:00
parent a8a3230798
commit f2de6d1122

View File

@ -107,7 +107,7 @@ JsonNode toJson(QVariant object)
void JsonToFile(QString filename, QVariant object)
{
FileStream file(qstringToPath(filename), std::ios::out | std::ios_base::binary);
file << toJson(object);
file << toJson(object).toJson();
}
}