mirror of
https://github.com/osukey/osukey.git
synced 2025-05-19 20:47:24 +09:00
Merge pull request #12804 from peppy/fix-autoplay-load-fail-nullref
Fix a potential nullref when starting `Player` with autoplay disabled and beatmap fails to load
This commit is contained in:
commit
4151f18f74
@ -154,6 +154,9 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
if (!LoadedBeatmapSuccessfully)
|
||||||
|
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user