Make delegate firing more safe to being set later than BDL

This commit is contained in:
Dean Herbert 2022-07-15 19:06:44 +09:00
parent 0e788ac714
commit 0200ef1d48
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ namespace osu.Game.Screens.Play
Direction = FillDirection.Horizontal,
Children = new Drawable[]
{
new SaveFailedScoreButton(SaveReplay)
new SaveFailedScoreButton(() => SaveReplay())
{
Width = 300
},

View File

@ -1048,6 +1048,7 @@ namespace osu.Game.Screens.Play
{
Score.ScoreInfo.Passed = false;
Score.ScoreInfo.Rank = ScoreRank.F;
var scoreCopy = Score.DeepClone();
try