Fix playlist items added with the wrong IDs

This commit is contained in:
smoogipoo 2020-02-17 17:02:19 +09:00
parent 6fd5667ff4
commit f9145ce5b4

View File

@ -62,7 +62,7 @@ namespace osu.Game.Screens.Select
{
PlaylistItem item = new PlaylistItem
{
ID = (Playlist.LastOrDefault()?.ID + 1) ?? 0,
ID = Playlist.Count == 0 ? 0 : Playlist.Max(p => p.ID) + 1
};
populateItemFromCurrent(item);