mirror of
https://github.com/ppy/osu.git
synced 2026-05-25 05:39:57 +08:00
Merge pull request #28944 from bdach/mania-crash
Fix crash when adding mania notes right after changing timing point
This commit is contained in:
@@ -9,6 +9,7 @@ using Humanizer;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Extensions.ObjectExtensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
@@ -405,5 +406,13 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
CommitIfPlacementActive();
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
|
||||
if (Beatmap.IsNotNull())
|
||||
Beatmap.HitObjectAdded -= hitObjectAdded;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user