1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Merge pull request #28767 from bdach/editor-test-play-ur-counter-crash

Fix editor player crashing with UR counter present in skin
This commit is contained in:
Dan Balasescu 2024-07-08 19:13:19 +09:00 committed by GitHub
commit 44ebec07bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,11 @@ namespace osu.Game.Screens.Edit.GameplayTest
foreach (var hitObject in enumerateHitObjects(DrawableRuleset.Objects, editorState.Time))
{
var judgement = hitObject.Judgement;
var result = new JudgementResult(hitObject, judgement) { Type = judgement.MaxResult };
var result = new JudgementResult(hitObject, judgement)
{
Type = judgement.MaxResult,
GameplayRate = GameplayClockContainer.GetTrueGameplayRate(),
};
HealthProcessor.ApplyResult(result);
ScoreProcessor.ApplyResult(result);