1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Fix saving games - regression from filesystem changes

This commit is contained in:
Ivan Savenko 2023-08-04 15:19:09 +03:00
parent 537f9fa048
commit ad8695ac91

View File

@ -86,7 +86,7 @@ bool CFilesystemLoader::createResource(std::string filename, bool update)
if (!update)
{
// create file, if not exists
std::fstream file((baseDirectory / filename).c_str());
std::ofstream file((baseDirectory / filename).c_str(), std::ofstream::binary);
if (!file.is_open())
return false;