Merge pull request #12715 from Cublibre/fix-early-exit-crash

Fix InvalidOperationException when exiting a map at the end
This commit is contained in:
Dean Herbert
2021-05-09 23:21:19 +09:00
committed by GitHub
2 changed files with 13 additions and 1 deletions

View File

@ -543,8 +543,10 @@ namespace osu.Game.Screens.Play
}
// if the score is ready for display but results screen has not been pushed yet (e.g. storyboard is still playing beyond gameplay), then transition to results screen instead of exiting.
if (prepareScoreForDisplayTask != null)
if (prepareScoreForDisplayTask != null && completionProgressDelegate == null)
{
updateCompletionState(true);
}
}
this.Exit();