Fix nested hitobject judgements not being removed

This commit is contained in:
smoogipoo 2017-11-13 14:00:35 +09:00
parent 8adf0a6db3
commit ae8407a3f3
2 changed files with 2 additions and 1 deletions

View File

@ -212,6 +212,7 @@ protected virtual void AddNested(DrawableHitObject<TObject> h)
nestedHitObjects = new List<DrawableHitObject<TObject>>();
h.OnJudgement += (d, j) => OnJudgement?.Invoke(d, j);
h.OnJudgementRemoved += (d, j) => OnJudgementRemoved?.Invoke(d, j);
nestedHitObjects.Add(h);
}

View File

@ -242,7 +242,7 @@ private void loadObjects()
OnJudgement?.Invoke(j);
};
drawableObject.OnJudgementRemoved += (d, j) => { OnJudgementRemoved?.Invoke(j); };
drawableObject.OnJudgementRemoved += (d, j) => OnJudgementRemoved?.Invoke(j);
Playfield.Add(drawableObject);
}