1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +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
commit 4151f18f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();