1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 05:49:52 +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
Unverified
parent 6dc992dd45
commit 0c841cffdd
+2 -2
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);