mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 11:12:59 +08:00
Fix local score infos conflicting
This commit is contained in:
parent
aa7f66b24a
commit
b673eb79b1
@ -57,7 +57,7 @@ namespace osu.Game.Scoring
|
|||||||
|
|
||||||
protected override ScoreInfo CheckForExisting(ScoreInfo model)
|
protected override ScoreInfo CheckForExisting(ScoreInfo model)
|
||||||
{
|
{
|
||||||
var existingHashMatch = scores.ConsumableItems.FirstOrDefault(s => s.MD5Hash == model.MD5Hash);
|
var existingHashMatch = scores.ConsumableItems.FirstOrDefault(s => s.MD5Hash != null && s.MD5Hash == model.MD5Hash);
|
||||||
if (existingHashMatch != null)
|
if (existingHashMatch != null)
|
||||||
{
|
{
|
||||||
Undelete(existingHashMatch);
|
Undelete(existingHashMatch);
|
||||||
|
Loading…
Reference in New Issue
Block a user