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

@ -39,7 +39,7 @@ namespace osu.Desktop.VisualTests.Tests
WorkingBeatmap beatmap = null;
var beatmapInfo = db.Query<BeatmapInfo>().FirstOrDefault(b => b.Ruleset.CreateInstance() is OsuRuleset);
var beatmapInfo = db.Query<BeatmapInfo>().FirstOrDefault(b => b.RulesetID == 0);
if (beatmapInfo != null)
beatmap = db.GetWorkingBeatmap(beatmapInfo);