1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

Add preventive assertions concerning submission flow state

This commit is contained in:
Bartłomiej Dach 2023-10-27 13:30:51 +02:00
parent 2d5b1711f6
commit dc7f5cd6ed
No known key found for this signature in database

View File

@ -1112,6 +1112,8 @@ namespace osu.Game.Screens.Play
if (LoadedBeatmapSuccessfully && !GameplayState.HasPassed)
{
Debug.Assert(resultsDisplayDelegate == null && prepareScoreForDisplayTask == null);
if (!GameplayState.HasFailed)
GameplayState.HasQuit = true;