mirror of
https://github.com/ppy/osu.git
synced 2026-05-24 02:09:54 +08:00
Merge pull request #28602 from smoogipoo/fix-double-fail-invoke
Prevent multiple invocations of failure procedure
This commit is contained in:
@@ -36,6 +36,9 @@ namespace osu.Game.Rulesets.Scoring
|
||||
/// </summary>
|
||||
public void TriggerFailure()
|
||||
{
|
||||
if (HasFailed)
|
||||
return;
|
||||
|
||||
if (Failed?.Invoke() != false)
|
||||
HasFailed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user