Replace failed mania test (pooling not accounted) with a more robust test

Also fix null reference in Playfield
This commit is contained in:
ekrctb
2021-04-21 13:00:46 +09:00
parent f55aa016be
commit 799d2a3300
3 changed files with 73 additions and 16 deletions

View File

@ -354,8 +354,11 @@ namespace osu.Game.Rulesets.UI
// If this is the first time this DHO is being used, then apply the DHO mods.
// This is done before Apply() so that the state is updated once when the hitobject is applied.
foreach (var m in mods.OfType<IApplicableToDrawableHitObjects>())
m.ApplyToDrawableHitObjects(dho.Yield());
if (mods != null)
{
foreach (var m in mods.OfType<IApplicableToDrawableHitObjects>())
m.ApplyToDrawableHitObjects(dho.Yield());
}
}
if (!lifetimeEntryMap.TryGetValue(hitObject, out var entry))