mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Fix old maps not getting cleared when switching matches
This commit is contained in:
parent
6ff29c1ea4
commit
ee6263f395
@ -180,12 +180,17 @@ namespace osu.Game.Tournament.Screens.MapPool
|
||||
|
||||
private void matchChanged(MatchPairing match)
|
||||
{
|
||||
foreach (var b in match.Grouping.Value.Beatmaps)
|
||||
maps.Add(new TournamentBeatmapPanel(b.BeatmapInfo)
|
||||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
});
|
||||
maps.Clear();
|
||||
|
||||
if (match.Grouping.Value != null)
|
||||
{
|
||||
foreach (var b in match.Grouping.Value.Beatmaps)
|
||||
maps.Add(new TournamentBeatmapPanel(b.BeatmapInfo)
|
||||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user