mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Don't crash on unexpected pairing links
This commit is contained in:
@ -104,7 +104,10 @@ namespace osu.Game.Tournament
|
||||
// link pairings to groupings
|
||||
foreach (var group in Ladder.Groupings)
|
||||
foreach (var id in group.Pairings)
|
||||
Ladder.Pairings.Single(p => p.ID == id).Grouping.Value = group;
|
||||
{
|
||||
var found = Ladder.Pairings.FirstOrDefault(p => p.ID == id);
|
||||
if (found != null) found.Grouping.Value = group;
|
||||
}
|
||||
|
||||
Ladder.CurrentMatch.Value = Ladder.Pairings.FirstOrDefault(p => p.Current.Value);
|
||||
|
||||
|
Reference in New Issue
Block a user