1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 14:43:02 +08:00

Fix nullref when changing display mode without any BeatmapSets added

This commit is contained in:
DrabWeb 2017-05-21 18:54:35 -03:00
parent 8c77f85667
commit 4e2126dca8

View File

@ -121,6 +121,7 @@ namespace osu.Game.Overlays
private void recreatePanels(PanelDisplayStyle displayStyle)
{
if (BeatmapSets == null) return;
panels.Children = BeatmapSets.Select(b => displayStyle == PanelDisplayStyle.Grid ? (DirectPanel)new DirectGridPanel(b) { Width = 400 } : new DirectListPanel(b));
}