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:
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user