1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 14:22:55 +08:00

Change playlist lookup to fail hard when failing

This commit is contained in:
Dean Herbert 2021-12-06 12:28:46 +09:00
parent b3b239c9a1
commit 91aa38c4f6

View File

@ -452,7 +452,7 @@ namespace osu.Game.Online.Multiplayer
Scheduler.Add(() =>
{
// ensure the new selected item is populated immediately.
var playlistItem = APIRoom.Playlist.SingleOrDefault(p => p.ID == newSettings.PlaylistItemId);
var playlistItem = APIRoom.Playlist.Single(p => p.ID == newSettings.PlaylistItemId);
if (playlistItem != null)
{