1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Merge pull request #8123 from smoogipoo/fix-ladderscreen-nullref

Fix nullref when deleting teams in the ladder screen
This commit is contained in:
Dean Herbert 2020-03-04 13:18:07 +09:00 committed by GitHub
commit 22c4c515f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ namespace osu.Game.Tournament.Screens.Ladder
break; break;
case NotifyCollectionChangedAction.Remove: case NotifyCollectionChangedAction.Remove:
foreach (var p in args.NewItems.Cast<TournamentMatch>()) foreach (var p in args.OldItems.Cast<TournamentMatch>())
{ {
foreach (var d in MatchesContainer.Where(d => d.Match == p)) foreach (var d in MatchesContainer.Where(d => d.Match == p))
d.Expire(); d.Expire();