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

Merge pull request #13904 from peppy/fix-match-removal-line-rendering

Fix progression lines getting stuck after removing a match in ladder editor screen
This commit is contained in:
Dan Balasescu 2021-07-17 00:23:16 +09:00 committed by GitHub
commit 6a781aedb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,6 +303,15 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
Match.LosersProgression.Value = null;
ladderInfo.Matches.Remove(Match);
foreach (var m in ladderInfo.Matches)
{
if (m.Progression.Value == Match)
m.Progression.Value = null;
if (m.LosersProgression.Value == Match)
m.LosersProgression.Value = null;
}
}
}
}