1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:02:55 +08:00

Remove from dictionary on Remove()

This commit is contained in:
smoogipoo 2019-09-02 15:06:43 +09:00
parent 8f8d35bd15
commit d74e1b9b64

View File

@ -51,8 +51,13 @@ namespace osu.Game.Rulesets.UI.Scrolling
public override bool Remove(DrawableHitObject hitObject) public override bool Remove(DrawableHitObject hitObject)
{ {
var result = base.Remove(hitObject); var result = base.Remove(hitObject);
if (result) if (result)
{
initialStateCache.Invalidate(); initialStateCache.Invalidate();
hitObjectInitialStateCache.Remove(hitObject);
}
return result; return result;
} }