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

@ -72,6 +72,9 @@ namespace osu.Game.Rulesets.Osu.Replays
public override Replay Generate()
{
if (Beatmap.HitObjects.Count == 0)
return Replay;
buttonIndex = 0;
AddFrameToReplay(new OsuReplayFrame(-100000, new Vector2(256, 500)));