mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +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);
|
increaseHp(h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (topLevelObjectCount == 0)
|
||||||
|
return testDrop;
|
||||||
|
|
||||||
if (!fail && currentHp < lowestHpEnd)
|
if (!fail && currentHp < lowestHpEnd)
|
||||||
{
|
{
|
||||||
fail = true;
|
fail = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user