mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +08:00
Fix TestResources
returning a test BeatmapSetInfo
that can't be laoded directly into realm
This commit is contained in:
parent
e9e3e024a1
commit
db86394355
@ -80,7 +80,10 @@ namespace osu.Game.Tests.Resources
|
||||
public static BeatmapSetInfo CreateTestBeatmapSetInfo(int? difficultyCount = null, RulesetInfo[] rulesets = null)
|
||||
{
|
||||
int j = 0;
|
||||
RulesetInfo getRuleset() => rulesets?[j++ % rulesets.Length] ?? new OsuRuleset().RulesetInfo;
|
||||
|
||||
rulesets ??= new[] { new OsuRuleset().RulesetInfo };
|
||||
|
||||
RulesetInfo getRuleset() => rulesets?[j++ % rulesets.Length];
|
||||
|
||||
int setId = Interlocked.Increment(ref importId);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user