Fix local score infos conflicting

This commit is contained in:
smoogipoo 2018-11-29 18:29:58 +09:00
parent aa7f66b24a
commit b673eb79b1

View File

@ -57,7 +57,7 @@ namespace osu.Game.Scoring
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)
{
Undelete(existingHashMatch);