1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:18:22 +08:00

Use dictionary add for safety

This commit is contained in:
Dean Herbert 2022-01-21 15:29:21 +09:00
parent ff4f40db8a
commit 3bcdce128c

View File

@ -934,7 +934,7 @@ namespace osu.Game.Screens.Select
public override void AddChild(CarouselItem i)
{
CarouselBeatmapSet set = (CarouselBeatmapSet)i;
BeatmapSetsByID[set.BeatmapSet.ID] = set;
BeatmapSetsByID.Add(set.BeatmapSet.ID, set);
base.AddChild(i);
}