mirror of
https://github.com/ppy/osu
synced 2025-01-07 06:40:05 +00:00
Fix regression during merges
This commit is contained in:
parent
ce48890559
commit
7a0662da4b
@ -440,12 +440,16 @@ namespace osu.Game
|
|||||||
|
|
||||||
private void screenAdded(Screen newScreen)
|
private void screenAdded(Screen newScreen)
|
||||||
{
|
{
|
||||||
|
currentScreen = (OsuScreen)newScreen;
|
||||||
|
|
||||||
newScreen.ModePushed += screenAdded;
|
newScreen.ModePushed += screenAdded;
|
||||||
newScreen.Exited += screenRemoved;
|
newScreen.Exited += screenRemoved;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void screenRemoved(Screen newScreen)
|
private void screenRemoved(Screen newScreen)
|
||||||
{
|
{
|
||||||
|
currentScreen = (OsuScreen)newScreen;
|
||||||
|
|
||||||
if (newScreen == null)
|
if (newScreen == null)
|
||||||
Exit();
|
Exit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user