Fix early return check

This commit is contained in:
Endrik Tombak 2020-04-25 10:47:12 +03:00
parent f68a7401b9
commit cea582992f

View File

@ -339,7 +339,7 @@ namespace osu.Game
menuScreen.LoadToSolo();
// we might even already be at the song
if (Beatmap.Value.BeatmapSetInfo.Hash == databasedSet.Hash && difficultyCriteria(Beatmap.Value.BeatmapInfo))
if (Beatmap.Value.BeatmapSetInfo.Hash == databasedSet.Hash && (difficultyCriteria?.Invoke(Beatmap.Value.BeatmapInfo) ?? true))
{
return;
}