1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 16:47: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:
Dan Balasescu 2024-03-20 17:30:34 +09:00
parent 8ee391530f
commit c78e203df5
No known key found for this signature in database

View File

@ -108,6 +108,9 @@ namespace osu.Game.Rulesets.Scoring
increaseHp(h);
}
if (topLevelObjectCount == 0)
return testDrop;
if (!fail && currentHp < lowestHpEnd)
{
fail = true;