mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
Add check for any drawables in content before looking for placeholder
This commit is contained in:
parent
88c3eef8e1
commit
cdf3aafddd
@ -342,7 +342,7 @@ namespace osu.Game.Overlays.Comments
|
||||
{
|
||||
LoadComponentsAsync(topLevelComments, loaded =>
|
||||
{
|
||||
if (content[0] is NoCommentsPlaceholder placeholder)
|
||||
if (content.Count > 0 && content[0] is NoCommentsPlaceholder placeholder)
|
||||
content.Remove(placeholder, true);
|
||||
|
||||
foreach (var comment in loaded)
|
||||
|
Loading…
Reference in New Issue
Block a user