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:
parent
537f9fa048
commit
ad8695ac91
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user