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:
parent
b3b239c9a1
commit
91aa38c4f6
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user