UESaveFile: fix a bug when working with a temp file.

This commit is contained in:
Guillaume Jacquemin 2022-04-17 12:46:25 +02:00
parent 0ce03f5395
commit b598476809

View file

@ -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;
}