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

Fixed CID 1366296

This commit is contained in:
AlexVinS 2016-11-26 21:45:58 +03:00
parent c9e564bed8
commit 96bc191480

View File

@ -229,7 +229,8 @@ bool FileStream::CreateFile(const boost::filesystem::path& filename)
{
FILE* f = do_open(filename.c_str(), CHAR_LITERAL("wb"));
bool result = (f != nullptr);
fclose(f);
if(result)
fclose(f);
return result;
}