Fix autoplay generators failing on empty hitobjects lists

This commit is contained in:
Dean Herbert
2020-09-28 14:15:26 +09:00
parent 600d37cc04
commit 6095446f10
4 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,9 @@ namespace osu.Game.Rulesets.Catch.Replays
public override Replay Generate()
{
if (Beatmap.HitObjects.Count == 0)
return Replay;
// todo: add support for HT DT
const double dash_speed = Catcher.BASE_SPEED;
const double movement_speed = dash_speed / 2;