1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Merge pull request #26648 from peppy/fix-followpoint-pooling

Fix `FollowPointConnection` pool filling up when follow points are hidden
This commit is contained in:
Bartłomiej Dach 2024-01-22 13:31:43 +01:00 committed by GitHub
commit 7f31070b87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,6 +153,9 @@ namespace osu.Game.Rulesets.Objects.Pooling
protected override bool CheckChildrenLife()
{
if (!IsPresent)
return false;
bool aliveChanged = base.CheckChildrenLife();
aliveChanged |= lifetimeManager.Update(Time.Current - PastLifetimeExtension, Time.Current + FutureLifetimeExtension);
return aliveChanged;