From 1b36db4c2944e5d692a19452389d1e0080895b28 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Sat, 3 Aug 2019 07:02:12 -0600 Subject: [PATCH] fix bug in patcher --- Wabbajack/Installer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Wabbajack/Installer.cs b/Wabbajack/Installer.cs index 568eb0bd..a1963a7b 100644 --- a/Wabbajack/Installer.cs +++ b/Wabbajack/Installer.cs @@ -214,6 +214,9 @@ namespace Wabbajack var to_file = Path.Combine(Outputfolder, to_patch.To); MemoryStream old_data = new MemoryStream(File.ReadAllBytes(to_file)); + // Remove the file we're about to patch + File.Delete(to_file); + // Patch it using (var out_stream = File.OpenWrite(to_file)) {