mirror of
https://github.com/ppy/osu
synced 2025-02-25 15:11:46 +00:00
Fix playlist items added with the wrong IDs
This commit is contained in:
parent
6fd5667ff4
commit
f9145ce5b4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user