mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 06:29:52 +08:00
Fix a potential nullref when starting Player with autoplay enabled and beatmap fails to load
This commit is contained in:
@@ -154,6 +154,10 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
// BDL load may have aborted early.
|
||||
if (DrawableRuleset == null)
|
||||
return;
|
||||
|
||||
// replays should never be recorded or played back when autoplay is enabled
|
||||
if (!Mods.Value.Any(m => m is ModAutoplay))
|
||||
PrepareReplay();
|
||||
|
||||
Reference in New Issue
Block a user