1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Fix attempting to add parent comments twice

This commit is contained in:
smoogipoo 2020-02-21 18:46:33 +09:00
parent 1cd84754c8
commit a7b5117d88

View File

@ -80,6 +80,12 @@ namespace osu.Game.Overlays.Comments
foreach (var child in bundle.IncludedComments)
add(child);
{
// Included comments can contain the parent comment, which already exists in the hierarchy.
if (commentDictionary.ContainsKey(child.Id))
continue;
}
// Comments whose parents did not previously have corresponding drawables, are now guaranteed that their parents have corresponding drawables.
foreach (var o in orphaned)