mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 20:43:21 +08:00
Fix possible nullref with non-attached hitobjects
This commit is contained in:
parent
d7c30f9b42
commit
81844878b0
@ -63,7 +63,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||
|
||||
public void UpdateProgress(double completionProgress)
|
||||
{
|
||||
if (drawableSlider == null)
|
||||
if (drawableSlider?.HitObject == null)
|
||||
return;
|
||||
|
||||
Slider slider = drawableSlider.HitObject;
|
||||
@ -92,7 +92,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||
|
||||
public void Refresh()
|
||||
{
|
||||
if (drawableSlider == null)
|
||||
if (drawableSlider?.HitObject == null)
|
||||
return;
|
||||
|
||||
// Generate the entire curve
|
||||
|
Loading…
Reference in New Issue
Block a user