Fix wrong InitialLifetimeOffset is used for a non-pooled DHO.

HitObjectLifetimeEntry's InitialLifetimeOffset is different from DrawableHitObject's InitialLifetimeOffset.
This commit is contained in:
ekrctb
2021-04-21 09:48:16 +09:00
parent e80c3c317a
commit 67fcfd9dbc
3 changed files with 13 additions and 6 deletions

View File

@ -1,6 +1,8 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
using osu.Game.Rulesets.Objects.Drawables;
namespace osu.Game.Rulesets.Objects
@ -11,8 +13,8 @@ namespace osu.Game.Rulesets.Objects
/// </summary>
internal class SyntheticHitObjectEntry : HitObjectLifetimeEntry
{
public SyntheticHitObjectEntry(HitObject hitObject)
: base(hitObject)
public SyntheticHitObjectEntry(HitObject hitObject, double initialLifetimeStart)
: base(hitObject, initialLifetimeStart)
{
}
}