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:
parent
ff4f40db8a
commit
3bcdce128c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user