1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 23:40:39 +08:00

Assert that player suspension is final

This commit is contained in:
Dean Herbert
2025-11-25 16:39:39 +09:00
Unverified
parent c968981697
commit 2c9fc32756
+2
View File
@@ -1172,6 +1172,8 @@ namespace osu.Game.Screens.Play
public override void OnSuspending(ScreenTransitionEvent e)
{
Debug.Assert(!ValidForResume);
screenSuspension?.RemoveAndDisposeImmediately();
// If these are not disposed, audio volume dimming can get stuck.