mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Fix infinite health processor loop when no top-level objects
This is unlikely to occur in actual gameplay, but occurs in the follow-up test.
This commit is contained in:
parent
8ee391530f
commit
c78e203df5
@ -108,6 +108,9 @@ namespace osu.Game.Rulesets.Scoring
|
||||
increaseHp(h);
|
||||
}
|
||||
|
||||
if (topLevelObjectCount == 0)
|
||||
return testDrop;
|
||||
|
||||
if (!fail && currentHp < lowestHpEnd)
|
||||
{
|
||||
fail = true;
|
||||
|
Loading…
Reference in New Issue
Block a user