1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 10:57:30 +08:00

Fix potential nullref in tests

This commit is contained in:
Dean Herbert 2023-02-06 19:31:45 +09:00
parent b83c8443ea
commit aaf3ad805c

View File

@ -1076,7 +1076,7 @@ namespace osu.Game.Screens.Play
// Eagerly clean these up as disposal of child components is asynchronous and may leave sounds playing beyond user expectations.
failAnimationLayer?.Stop();
PauseOverlay.StopAllSamples();
PauseOverlay?.StopAllSamples();
if (LoadedBeatmapSuccessfully)
{