1
0
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:
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); increaseHp(h);
} }
if (topLevelObjectCount == 0)
return testDrop;
if (!fail && currentHp < lowestHpEnd) if (!fail && currentHp < lowestHpEnd)
{ {
fail = true; fail = true;