Fix ruleset not always being initialised correctly.

This commit is contained in:
Dean Herbert
2017-04-18 10:55:33 +09:00
parent 6b6690caf7
commit 5939ba9143
2 changed files with 3 additions and 3 deletions

View File

@ -276,8 +276,8 @@ namespace osu.Game.Database
//we need metadata
GetChildren(beatmapSetInfo);
foreach (var b in beatmapSetInfo.Beatmaps)
GetChildren(b);
//we also need a ruleset
GetChildren(beatmapInfo);
if (beatmapInfo.Metadata == null)
beatmapInfo.Metadata = beatmapSetInfo.Metadata;