From b5984768091b24eabcec347a66fafd96aafd5060 Mon Sep 17 00:00:00 2001 From: William JCM Date: Sun, 17 Apr 2022 12:46:25 +0200 Subject: [PATCH] UESaveFile: fix a bug when working with a temp file. --- src/UESaveFile/UESaveFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UESaveFile/UESaveFile.cpp b/src/UESaveFile/UESaveFile.cpp index 45b30fd..9209269 100644 --- a/src/UESaveFile/UESaveFile.cpp +++ b/src/UESaveFile/UESaveFile.cpp @@ -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; }