1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 06:21:22 +08:00

Merge pull request #33345 from bdach/song-select-v2-human-fuzzers

SongSelectV2: Fix more crashes resulting from users deliberately trying to break things
This commit is contained in:
Dean Herbert
2025-05-31 11:46:07 +09:00
committed by GitHub
Unverified
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();
}