Use existing LoadedBeatmapSuccessfully bool instead

Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
This commit is contained in:
Dean Herbert 2021-05-14 16:53:51 +09:00 committed by GitHub
parent dc576c19b4
commit f5dd18f266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,8 +154,7 @@ namespace osu.Game.Screens.Play
{ {
base.LoadComplete(); base.LoadComplete();
// BDL load may have aborted early. if (!LoadedBeatmapSuccessfully)
if (DrawableRuleset == null)
return; 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