Fix broken test cases, remove some recursive lookup methods.

This commit is contained in:
Dean Herbert
2017-05-11 18:14:48 +09:00
parent 18b7c8e783
commit a2f6d8a3e6
4 changed files with 8 additions and 7 deletions

View File

@ -267,6 +267,9 @@ namespace osu.Game.Database
public WorkingBeatmap GetWorkingBeatmap(BeatmapInfo beatmapInfo, WorkingBeatmap previous = null, bool withStoryboard = false)
{
if (beatmapInfo.BeatmapSet == null)
beatmapInfo = GetChildren(beatmapInfo, true);
if (beatmapInfo.BeatmapSet == null)
throw new InvalidOperationException($@"Beatmap set {beatmapInfo.BeatmapSetInfoID} is not in the local database.");