mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Fix one more nullref
This commit is contained in:
parent
6c661973a6
commit
dd025262d0
@ -60,7 +60,9 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
|
|
||||||
lightingColour?.UnbindAll();
|
lightingColour?.UnbindAll();
|
||||||
|
|
||||||
if (JudgedObject != null && lighting != null)
|
if (lighting != null)
|
||||||
|
{
|
||||||
|
if (JudgedObject != null)
|
||||||
{
|
{
|
||||||
lightingColour = JudgedObject.AccentColour.GetBoundCopy();
|
lightingColour = JudgedObject.AccentColour.GetBoundCopy();
|
||||||
lightingColour.BindValueChanged(colour => lighting.Colour = Result.Type == HitResult.Miss ? Color4.Transparent : colour.NewValue, true);
|
lightingColour.BindValueChanged(colour => lighting.Colour = Result.Type == HitResult.Miss ? Color4.Transparent : colour.NewValue, true);
|
||||||
@ -70,6 +72,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
lighting.Colour = Color4.White;
|
lighting.Colour = Color4.White;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected override double FadeOutDelay => lighting == null ? base.FadeOutDelay : 1400;
|
protected override double FadeOutDelay => lighting == null ? base.FadeOutDelay : 1400;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user