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:
parent
1cd84754c8
commit
a7b5117d88
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user