1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 15:12:57 +08:00

Use property instead of backing field consistently

This commit is contained in:
ekrctb 2021-06-17 10:31:20 +09:00
parent 55859938b1
commit e7954ecb60

View File

@ -132,11 +132,11 @@ namespace osu.Game.Rulesets.Objects.Pooling
private void free() private void free()
{ {
Debug.Assert(entry != null && HasEntryApplied); Debug.Assert(Entry != null && HasEntryApplied);
OnFree(entry); OnFree(Entry);
entry.LifetimeChanged -= setLifetimeFromEntry; Entry.LifetimeChanged -= setLifetimeFromEntry;
entry = null; entry = null;
base.LifetimeStart = double.MinValue; base.LifetimeStart = double.MinValue;
base.LifetimeEnd = double.MaxValue; base.LifetimeEnd = double.MaxValue;