1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 05:12:55 +08:00

Throw exception on unknown hitobject.

This commit is contained in:
Dean Herbert 2017-02-15 11:37:23 +09:00
parent 5873178df3
commit f2b0fd4de0
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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