mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Fix pools not being added to hierarchy
This commit is contained in:
@ -348,7 +348,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
public PoolableSkinnableSample GetPooledSample(ISampleInfo sampleInfo)
|
public PoolableSkinnableSample GetPooledSample(ISampleInfo sampleInfo)
|
||||||
{
|
{
|
||||||
if (!samplePools.TryGetValue(sampleInfo, out var existingPool))
|
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();
|
return existingPool.Get();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user