fix bug in patcher

This commit is contained in:
Timothy Baldridge 2019-08-03 07:02:12 -06:00
parent 873bb47e35
commit 1b36db4c29

View File

@ -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))
{