1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 12:10:12 +08:00

Don't set entry immediately

This commit is contained in:
smoogipoo
2021-06-18 19:23:37 +09:00
Unverified
parent 36d2199a02
commit 36d51d5117
@@ -30,7 +30,9 @@ namespace osu.Game.Rulesets.Objects.Pooling
get => entry;
set
{
if (value != null)
if (LoadState == LoadState.NotLoaded)
entry = value;
else if (value != null)
Apply(value);
else if (HasEntryApplied)
free();