1
0
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:
ansel 2023-01-14 22:37:05 +03:00
parent 88c3eef8e1
commit cdf3aafddd

View File

@ -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)