Browse Source

Fixed wrong target filename in backup restore

Ivan Arkhipov 4 years ago
parent
commit
b0e6379bea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/DatSubsystems/DatBackupManager.cpp

+ 1 - 1
src/DatSubsystems/DatBackupManager.cpp

@@ -72,7 +72,7 @@ namespace LOTRO_DAT {
         std::string dat_filename = dat->GetIO().GetFilename().value;
         dat->Deinitialize();
 
-        FILE* file = fopen(backup_datname.c_str(), "w+b");
+        FILE* file = fopen(dat_filename.c_str(), "w+b");
         if (!file)
             return DatOperationResult<>(ERROR, "RESTOREFROMBACKUP: cannot open file " + backup_datname);