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

Fix pools not being added to hierarchy

This commit is contained in:
smoogipoo 2020-11-19 20:24:03 +09:00
parent 003fed857c
commit 8920534a25

View File

@ -348,7 +348,7 @@ namespace osu.Game.Rulesets.UI
public PoolableSkinnableSample GetPooledSample(ISampleInfo sampleInfo)
{
if (!samplePools.TryGetValue(sampleInfo, out var existingPool))
samplePools[sampleInfo] = existingPool = new DrawableSamplePool(sampleInfo, 5);
AddInternal(samplePools[sampleInfo] = existingPool = new DrawableSamplePool(sampleInfo, 5));
return existingPool.Get();
}