mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 10:15:16 +08:00
Fix nullref.
This commit is contained in:
parent
a0c0a0fcfe
commit
c3adbb9b41
@ -44,7 +44,7 @@ namespace osu.Game.Modes.Taiko.Beatmaps
|
||||
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
Block a user