mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:23:02 +08:00
Don't set entry immediately
This commit is contained in:
parent
36d2199a02
commit
36d51d5117
@ -30,7 +30,9 @@ namespace osu.Game.Rulesets.Objects.Pooling
|
|||||||
get => entry;
|
get => entry;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value != null)
|
if (LoadState == LoadState.NotLoaded)
|
||||||
|
entry = value;
|
||||||
|
else if (value != null)
|
||||||
Apply(value);
|
Apply(value);
|
||||||
else if (HasEntryApplied)
|
else if (HasEntryApplied)
|
||||||
free();
|
free();
|
||||||
|
Loading…
Reference in New Issue
Block a user