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:
parent
248d342a2f
commit
2d892c7407
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user