mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 23:12:59 +08:00
Merge pull request #1801 from smoogipoo/hitobject-constructor-safety
Fix DrawableHitCircle accepting a base OsuHitObject parameter
This commit is contained in:
commit
e6d79fbc66
@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
private readonly NumberPiece number;
|
private readonly NumberPiece number;
|
||||||
private readonly GlowPiece glow;
|
private readonly GlowPiece glow;
|
||||||
|
|
||||||
public DrawableHitCircle(OsuHitObject h) : base(h)
|
public DrawableHitCircle(HitCircle h) : base(h)
|
||||||
{
|
{
|
||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Centre;
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
{
|
{
|
||||||
private readonly bool auto;
|
private readonly bool auto;
|
||||||
|
|
||||||
public TestDrawableHitCircle(OsuHitObject h, bool auto) : base(h)
|
public TestDrawableHitCircle(HitCircle h, bool auto) : base(h)
|
||||||
{
|
{
|
||||||
this.auto = auto;
|
this.auto = auto;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user