mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09: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();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
// BDL load may have aborted early.
|
||||||
|
if (DrawableRuleset == null)
|
||||||
|
return;
|
||||||
|
|
||||||
// replays should never be recorded or played back when autoplay is enabled
|
// replays should never be recorded or played back when autoplay is enabled
|
||||||
if (!Mods.Value.Any(m => m is ModAutoplay))
|
if (!Mods.Value.Any(m => m is ModAutoplay))
|
||||||
PrepareReplay();
|
PrepareReplay();
|
||||||
|
Reference in New Issue
Block a user