fix for profile change saving on windows

This commit is contained in:
Micah Acinapura
2019-09-16 15:18:05 -04:00
parent d7398e34d2
commit 2a75a88195
+1
View File
@@ -427,6 +427,7 @@ int saveLastChangeToProfile(lua_State* L) {
filein.close();
fileout.close();
if (found) {
FileSys.deleteFile(assetPath);
int success = rename(tempAssetPath.c_str(), assetPath.c_str());
if (success != 0) {
std::string error = fmt::format("Error renaming file {} to {}",