From 585e7ba312bbdd3884ff6205002d9498a89ebfce Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 15 Jun 2017 14:42:25 +0900 Subject: [PATCH] Add a check to make sure all hitobjects use relativepositionaxes --- osu.Game/Rulesets/Timing/SpeedAdjustmentCollection.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Rulesets/Timing/SpeedAdjustmentCollection.cs b/osu.Game/Rulesets/Timing/SpeedAdjustmentCollection.cs index 27784c22b3..67019c2deb 100644 --- a/osu.Game/Rulesets/Timing/SpeedAdjustmentCollection.cs +++ b/osu.Game/Rulesets/Timing/SpeedAdjustmentCollection.cs @@ -40,6 +40,9 @@ namespace osu.Game.Rulesets.Timing /// The hit object to add. public void Add(DrawableHitObject hitObject) { + if (hitObject.RelativePositionAxes == Axes.None) + throw new InvalidOperationException($"Make sure to set all {nameof(DrawableHitObject)}'s {nameof(RelativePositionAxes)} to some axis of relativity"); + var target = adjustmentContainerFor(hitObject); if (target == null)