1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-03 16:46:05 +08:00

SongSelectV2: Fix more crashes resulting from users deliberately trying to break things

See https://github.com/ppy/osu/issues/33336#issuecomment-2922443444.

Can't wait for even more human fuzzing to come later.
This commit is contained in:
Bartłomiej Dach
2025-05-30 19:54:49 +02:00
Unverified
parent d18efc9ab4
commit d2abfe4370
2 changed files with 9 additions and 0 deletions
@@ -143,6 +143,9 @@ namespace osu.Game.Screens.SelectV2
private void edit(BeatmapInfo beatmap)
{
if (!this.IsCurrentScreen())
return;
FinaliseSelection();
// Forced refetch is important here to guarantee correct invalidation across all difficulties.
+6
View File
@@ -390,6 +390,9 @@ namespace osu.Game.Screens.SelectV2
private void selectBeatmap(BeatmapInfo beatmap)
{
if (!this.IsCurrentScreen())
return;
if (beatmap.BeatmapSet!.Protected)
return;
@@ -674,6 +677,9 @@ namespace osu.Game.Screens.SelectV2
/// </summary>
public void SelectAndStart(BeatmapInfo beatmap)
{
if (!this.IsCurrentScreen())
return;
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap);
OnStart();
}