From 1a355063866132f4a63dc478b4c7d1e0471eff02 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Tue, 14 Aug 2018 14:29:49 +0900 Subject: [PATCH] Cleanup strong hit construction --- .../Objects/Drawables/DrawableTaikoHitObject.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/osu.Game.Rulesets.Taiko/Objects/Drawables/DrawableTaikoHitObject.cs b/osu.Game.Rulesets.Taiko/Objects/Drawables/DrawableTaikoHitObject.cs index bb63bd58cf..51e39dc648 100644 --- a/osu.Game.Rulesets.Taiko/Objects/Drawables/DrawableTaikoHitObject.cs +++ b/osu.Game.Rulesets.Taiko/Objects/Drawables/DrawableTaikoHitObject.cs @@ -105,12 +105,10 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables var strongObject = HitObject.NestedHitObjects.OfType().FirstOrDefault(); if (strongObject != null) { - var vis = CreateStrongHit(strongObject); - if (vis != null) - { - AddNested(vis); - AddInternal(vis); - } + var strongHit = CreateStrongHit(strongObject); + + AddNested(strongHit); + AddInternal(strongHit); } }