1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Fix old maps not getting cleared when switching matches

This commit is contained in:
Dean Herbert 2018-11-08 20:14:50 +09:00
parent 6ff29c1ea4
commit ee6263f395

View File

@ -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,
});
}
}
}
}