mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 02:15:08 +08:00
Fix nullref when deleting teams in the ladder screen
This commit is contained in:
parent
740eb9ff53
commit
fc0821f194
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user