mirror of
https://github.com/ppy/osu
synced 2025-03-02 01:21:19 +00:00
Merge pull request #5503 from peppy/fix-zero-length-hash
Fix zero-length hash models incorrectly creating a unique hash
This commit is contained in:
commit
6c3b439b3b
@ -253,7 +253,7 @@ namespace osu.Game.Database
|
|||||||
using (Stream s = reader.GetStream(file))
|
using (Stream s = reader.GetStream(file))
|
||||||
s.CopyTo(hashable);
|
s.CopyTo(hashable);
|
||||||
|
|
||||||
return hashable.ComputeSHA2Hash();
|
return hashable.Length > 0 ? hashable.ComputeSHA2Hash() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user