1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Merge pull request #10593 from peppy/fix-song-select-potential-nullref

Fix a potential null reference when loading carousel difficulties
This commit is contained in:
Bartłomiej Dach 2020-10-25 13:11:45 +01:00 committed by GitHub
commit 6d0b0d1f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;