1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 04:09:53 +08:00

Merge pull request #28602 from smoogipoo/fix-double-fail-invoke

Prevent multiple invocations of failure procedure
This commit is contained in:
Dean Herbert
2024-06-26 14:23:24 +09:00
committed by GitHub
Unverified
@@ -36,6 +36,9 @@ namespace osu.Game.Rulesets.Scoring
/// </summary>
public void TriggerFailure()
{
if (HasFailed)
return;
if (Failed?.Invoke() != false)
HasFailed = true;
}