mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Throw rather than ignore on invalid control point addition
This commit is contained in:
@ -276,6 +276,9 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
case EffectControlPoint typed:
|
||||
effectPoints.Add(typed);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new ArgumentException($"A control point of unexpected type {controlPoint.GetType()} was added to this {nameof(ControlPointInfo)}");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user