mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 03:02:56 +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;
|
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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user