mirror of
https://github.com/ppy/osu.git
synced 2025-01-25 08:22:57 +08:00
Merge pull request #5808 from peppy/fix-crash-on-close
Fix crash on closing game
This commit is contained in:
commit
a4ad70fd76
@ -138,7 +138,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
private RulesetFlow rulesets;
|
private RulesetFlow rulesets;
|
||||||
private Container rulesetsScale;
|
private Container rulesetsScale;
|
||||||
private Drawable logoContainerSecondary;
|
private Container logoContainerSecondary;
|
||||||
private Drawable lazerLogo;
|
private Drawable lazerLogo;
|
||||||
|
|
||||||
private GlitchingTriangles triangles;
|
private GlitchingTriangles triangles;
|
||||||
@ -158,7 +158,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
this.game = game;
|
this.game = game;
|
||||||
|
|
||||||
InternalChildren = new[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
triangles = new GlitchingTriangles
|
triangles = new GlitchingTriangles
|
||||||
{
|
{
|
||||||
@ -277,7 +277,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
lazerLogo.FadeOut().OnComplete(_ =>
|
lazerLogo.FadeOut().OnComplete(_ =>
|
||||||
{
|
{
|
||||||
lazerLogo.Expire();
|
logoContainerSecondary.Remove(lazerLogo);
|
||||||
lazerLogo.Dispose(); // explicit disposal as we are pushing a new screen and the expire may not get run.
|
lazerLogo.Dispose(); // explicit disposal as we are pushing a new screen and the expire may not get run.
|
||||||
|
|
||||||
logo.FadeIn();
|
logo.FadeIn();
|
||||||
|
Loading…
Reference in New Issue
Block a user