1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-07 13:47:33 +08:00

Fix nullref.

This commit is contained in:
smoogipooo 2017-03-23 20:34:11 +09:00
parent a0c0a0fcfe
commit c3adbb9b41

View File

@ -44,7 +44,7 @@ namespace osu.Game.Modes.Taiko.Beatmaps
IHasRepeats repeatsData = original as IHasRepeats; IHasRepeats repeatsData = original as IHasRepeats;
IHasEndTime endTimeData = original as IHasEndTime; IHasEndTime endTimeData = original as IHasEndTime;
bool isFinisher = (original.Sample.Type & SampleType.Finish) > 0; bool isFinisher = ((original.Sample?.Type ?? SampleType.None) & SampleType.Finish) > 0;
if (distanceData != null) if (distanceData != null)
{ {