Make the playfield work in TestCaseGamefield.

This commit is contained in:
smoogipooo
2017-05-11 20:04:45 +09:00
parent ee219c18db
commit 0739a76497
3 changed files with 12 additions and 4 deletions

View File

@ -52,7 +52,7 @@ namespace osu.Game.Rulesets.Mania.Timing
return;
}
var section = drawableTimingSections.LastOrDefault(t => t.CanContain(drawable)) ?? drawableTimingSections.First();
var section = drawableTimingSections.LastOrDefault(t => t.CanContain(drawable)) ?? drawableTimingSections.FirstOrDefault();
if (section == null)
throw new Exception("Could not find suitable timing section to add object to.");