From f2b0fd4de017f7803eefacb28e7f7cdb72efff2b Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 15 Feb 2017 11:37:23 +0900 Subject: [PATCH] Throw exception on unknown hitobject. --- osu.Game.Modes.Osu/Objects/OsuHitObjectParser.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osu.Game.Modes.Osu/Objects/OsuHitObjectParser.cs b/osu.Game.Modes.Osu/Objects/OsuHitObjectParser.cs index 52329a2766..b4dc494ad4 100644 --- a/osu.Game.Modes.Osu/Objects/OsuHitObjectParser.cs +++ b/osu.Game.Modes.Osu/Objects/OsuHitObjectParser.cs @@ -97,8 +97,7 @@ namespace osu.Game.Modes.Osu.Objects }; break; default: - //throw new InvalidOperationException($@"Unknown hit object type {type}"); - return null; + throw new InvalidOperationException($@"Unknown hit object type {type}"); } result.StartTime = Convert.ToDouble(split[2], CultureInfo.InvariantCulture); result.Sample = new HitSampleInfo