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

Allow Apply() to be called multiple times sequentially

This commit is contained in:
smoogipoo 2020-11-06 23:03:29 +09:00
parent 248d342a2f
commit 2d892c7407

View File

@ -191,6 +191,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
/// <param name="hitObject"></param>
public virtual void Apply(HitObject hitObject)
{
if (HitObject != null)
FreeAfterUse();
HitObject = hitObject;
// Copy any existing result from the hitobject (required for rewind / judgement revert).