Suppress warnings

This commit is contained in:
smoogipoo
2019-11-12 13:41:54 +09:00
parent ed11c72d0b
commit 3f8928ca25
3 changed files with 5 additions and 2 deletions

View File

@ -149,8 +149,10 @@ namespace osu.Game.Rulesets.Objects.Drawables
return;
if (HitObject.SampleControlPoint == null)
{
throw new ArgumentNullException(nameof(HitObject.SampleControlPoint), $"{nameof(HitObject)}s must always have an attached {nameof(HitObject.SampleControlPoint)}."
+ $" This is an indication that {nameof(HitObject.ApplyDefaults)} has not been invoked on {this}.");
}
samples = samples.Select(s => HitObject.SampleControlPoint.ApplyTo(s)).ToArray();
foreach (var s in samples)