Perhaps the '??' operator works in a different way than it was expected. Its priority is lower than priority of other operators in its left part.

This commit is contained in:
Roman Kapustin
2018-06-26 00:53:31 +03:00
parent 6736f2988e
commit 2a72062c33
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ namespace osu.Game.Rulesets.Taiko.UI
private void loadBarLines()
{
TaikoHitObject lastObject = Beatmap.HitObjects[Beatmap.HitObjects.Count - 1];
double lastHitTime = 1 + (lastObject as IHasEndTime)?.EndTime ?? lastObject.StartTime;
double lastHitTime = 1 + ((lastObject as IHasEndTime)?.EndTime ?? lastObject.StartTime);
var timingPoints = Beatmap.ControlPointInfo.TimingPoints.ToList();