mirror of
https://github.com/ppy/osu.git
synced 2026-05-31 12:30:24 +08:00
Fix HitError Clear methods not correctly returning pooled drawables
This commit is contained in:
@@ -485,7 +485,11 @@ namespace osu.Game.Screens.Play.HUD.HitErrorMeters
|
||||
}
|
||||
}
|
||||
|
||||
public override void Clear() => judgementsContainer.Clear();
|
||||
public override void Clear()
|
||||
{
|
||||
foreach (var j in judgementsContainer)
|
||||
j.FadeOut().Expire();
|
||||
}
|
||||
|
||||
public enum CentreMarkerStyles
|
||||
{
|
||||
|
||||
@@ -63,7 +63,11 @@ namespace osu.Game.Screens.Play.HUD.HitErrorMeters
|
||||
judgementsFlow.Push(GetColourForHitResult(judgement.Type));
|
||||
}
|
||||
|
||||
public override void Clear() => judgementsFlow.Clear();
|
||||
public override void Clear()
|
||||
{
|
||||
foreach (var j in judgementsFlow)
|
||||
j.FadeOut().Expire();
|
||||
}
|
||||
|
||||
private partial class JudgementFlow : FillFlowContainer<HitErrorShape>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user