mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 15:53:21 +08:00
Remove forced disposal of WorkingBeatmap.
This commit is contained in:
parent
eb30882b09
commit
c969e0b4f0
@ -30,17 +30,6 @@ namespace osu.Game.GameModes.Play
|
|||||||
private InterpolatingFramedClock playerClock;
|
private InterpolatingFramedClock playerClock;
|
||||||
private IAdjustableClock sourceClock;
|
private IAdjustableClock sourceClock;
|
||||||
|
|
||||||
protected override bool OnExiting(GameMode next)
|
|
||||||
{
|
|
||||||
if (next == null)
|
|
||||||
{
|
|
||||||
//eagerly dispose as the finalizer runs too late right now.
|
|
||||||
Beatmap?.Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
return base.OnExiting(next);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Load(BaseGame game)
|
public override void Load(BaseGame game)
|
||||||
{
|
{
|
||||||
base.Load(game);
|
base.Load(game);
|
||||||
|
Loading…
Reference in New Issue
Block a user