1
0
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:
Dean Herbert 2017-12-30 15:47:12 +09:00 committed by GitHub
commit e6d79fbc66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
} }