1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Merge pull request #9499 from peppy/fix-better

Fix one more nullref
This commit is contained in:
Dean Herbert 2020-07-10 22:49:10 +09:00 committed by GitHub
commit d8b92cc585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,9 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
lightingColour?.UnbindAll();
if (JudgedObject != null && lighting != null)
if (lighting != null)
{
if (JudgedObject != null)
{
lightingColour = JudgedObject.AccentColour.GetBoundCopy();
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;
}
}
}
protected override double FadeOutDelay => lighting == null ? base.FadeOutDelay : 1400;