Stream position was not reset for MD5 calculation for xml files.
This commit is contained in:
@@ -194,6 +194,7 @@ namespace Barotrauma
|
||||
writer.Write(doc.ToString());
|
||||
writer.Flush();
|
||||
|
||||
memoryStream.Position = 0;
|
||||
return md5.ComputeHash(memoryStream);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user