mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 15:13:21 +08:00
Use dictionary add for safety
This commit is contained in:
parent
ff4f40db8a
commit
3bcdce128c
@ -934,7 +934,7 @@ namespace osu.Game.Screens.Select
|
|||||||
public override void AddChild(CarouselItem i)
|
public override void AddChild(CarouselItem i)
|
||||||
{
|
{
|
||||||
CarouselBeatmapSet set = (CarouselBeatmapSet)i;
|
CarouselBeatmapSet set = (CarouselBeatmapSet)i;
|
||||||
BeatmapSetsByID[set.BeatmapSet.ID] = set;
|
BeatmapSetsByID.Add(set.BeatmapSet.ID, set);
|
||||||
|
|
||||||
base.AddChild(i);
|
base.AddChild(i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user