mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 05:02:53 +08:00
Merge pull request #1572 from peppy/fix-nullref-on-dispose
Fix nullref on disposing BeatmapSetOverlay before load
This commit is contained in:
commit
ccb531e6b6
@ -232,7 +232,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
beatmaps.BeatmapSetAdded -= handleBeatmapAdd;
|
if (beatmaps != null) beatmaps.BeatmapSetAdded -= handleBeatmapAdd;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleBeatmapAdd(BeatmapSetInfo beatmap)
|
private void handleBeatmapAdd(BeatmapSetInfo beatmap)
|
||||||
|
Loading…
Reference in New Issue
Block a user