1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 00:20:38 +08: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:
Dan Balasescu
2021-05-17 18:40:05 +09:00
committed by GitHub
Unverified
+3
View File
@@ -154,6 +154,9 @@ namespace osu.Game.Screens.Play
{
base.LoadComplete();
if (!LoadedBeatmapSuccessfully)
return;
// replays should never be recorded or played back when autoplay is enabled
if (!Mods.Value.Any(m => m is ModAutoplay))
PrepareReplay();