Fix a potential null reference when loading carousel difficulties

This commit is contained in:
Dean Herbert 2020-10-25 20:28:24 +09:00
parent 89797d7a57
commit 8b04cd2cb0

View File

@ -140,7 +140,7 @@ namespace osu.Game.Screens.Select.Carousel
LoadComponentAsync(beatmapContainer, loaded =>
{
// make sure the pooled target hasn't changed.
if (carouselBeatmapSet != Item)
if (beatmapContainer != loaded)
return;
Content.Child = loaded;