UESaveFile: fix a bug when working with a temp file.
This commit is contained in:
parent
0ce03f5395
commit
b598476809
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ auto UESaveFile::saveToFile() -> bool {
|
|||
|
||||
writer.closeFile();
|
||||
|
||||
if(!temp_file && !Utility::Path::copy(_filepath + ".tmp"_s, _filepath)) {
|
||||
if(!Utility::Path::copy(_filepath + ".tmp"_s, _filepath)) {
|
||||
_lastError = "Couldn't save the file properly.";
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue