1
0
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:
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) 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);