Merge pull request #16224 from smoogipoo/fix-incorrect-reference

Fix TestMultiplayerClient referencing the wrong playlist
This commit is contained in:
Dean Herbert 2021-12-24 10:38:47 +09:00 committed by GitHub
commit 59124faa48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ private async Task updatePlaylistOrder(MultiplayerRoom room)
var itemsByPriority = new List<(MultiplayerPlaylistItem item, int priority)>();
// Assign a priority for items from each user, starting from 0 and increasing in order which the user added the items.
foreach (var group in room.Playlist.Where(item => !item.Expired).OrderBy(item => item.ID).GroupBy(item => item.OwnerID))
foreach (var group in serverSidePlaylist.Where(item => !item.Expired).OrderBy(item => item.ID).GroupBy(item => item.OwnerID))
{
int priority = 0;
itemsByPriority.AddRange(group.Select(item => (item, priority++)));