UESaveFile: close the file after we're done writing to it.
This commit is contained in:
parent
b3220ca8e1
commit
0826d4aede
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ auto UESaveFile::saveToFile() -> bool {
|
|||
|
||||
writer.writeUnsignedInt(0);
|
||||
|
||||
writer.closeFile();
|
||||
|
||||
if(!Utility::Directory::copy(_filepath, _filepath + ".bak")) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue