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:
parent
003fed857c
commit
8920534a25
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user