mirror of https://github.com/ppy/osu
Fix nullref.
This commit is contained in:
parent
a0c0a0fcfe
commit
c3adbb9b41
|
@ -44,7 +44,7 @@ private TaikoHitObject convertHitObject(HitObject original)
|
|||
IHasRepeats repeatsData = original as IHasRepeats;
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue