mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +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:
commit
7f31070b87
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user