mirror of
https://github.com/ppy/osu
synced 2025-02-04 04:11:54 +00: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)
|
foreach (var child in bundle.IncludedComments)
|
||||||
add(child);
|
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.
|
// Comments whose parents did not previously have corresponding drawables, are now guaranteed that their parents have corresponding drawables.
|
||||||
foreach (var o in orphaned)
|
foreach (var o in orphaned)
|
||||||
|
Loading…
Reference in New Issue
Block a user