Fixed, Script Editor: MD5 hash of text files stored in PK3 was calculated incorrectly, resulting in false warning messages when saving.

This commit is contained in:
MaxED 2016-12-22 00:03:58 +00:00
parent cfc92d9075
commit d73ea867a4
3 changed files with 8 additions and 2 deletions

View file

@ -584,6 +584,9 @@ namespace CodeImp.DoomBuilder.Data
File.WriteAllBytes(location.location, savestream.ToArray());
}
// Rewind the stream (because DirectoryReader/WADReader don't modify stream Position in SaveFile)
stream.Position = 0;
return true;
}