mirror of
https://github.com/ppy/osu
synced 2024-12-15 19:36:34 +00:00
Fix a potential nullref when starting Player
with autoplay enabled and beatmap fails to load
This commit is contained in:
parent
475c7e4a45
commit
dc576c19b4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user