1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

Change GetChildren recursive default to false (should be more common).

This commit is contained in:
Dean Herbert 2016-11-23 15:34:32 +09:00
parent 6dc992dd45
commit 0c841cffdd

View File

@ -144,7 +144,7 @@ namespace osu.Game.Database
var beatmapSetInfo = Query<BeatmapSetInfo>().FirstOrDefault(s => s.BeatmapSetID == beatmapInfo.BeatmapSetID);
//we need metadata
GetChildren(beatmapSetInfo, false);
GetChildren(beatmapSetInfo);
if (beatmapSetInfo == null)
throw new InvalidOperationException($@"Beatmap set {beatmapInfo.BeatmapSetID} is not in the local database.");
@ -181,7 +181,7 @@ namespace osu.Game.Database
return connection.GetAllWithChildren(filter, recursive);
}
public T GetChildren<T>(T item, bool recursive = true)
public T GetChildren<T>(T item, bool recursive = false)
{
if (item == null) return default(T);