condensed some commits because they were small or already reversed

This commit is contained in:
Jorolf
2017-04-11 22:48:53 +02:00
parent 50b6bcd574
commit ed2f5d210e
3 changed files with 9 additions and 8 deletions

View File

@ -57,6 +57,7 @@ namespace osu.Game.Graphics.UserInterface
Length = bar.Value / (MaxValue ?? value.Max()),
Direction = Direction,
});
//I'm using ToList() here because Where() returns an Enumerable which can change it's elements afterwards
Remove(Children.Where((bar, index) => index >= value.Count()).ToList());
}
}