mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +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)
|
||||
{
|
||||
currentScreen = (OsuScreen)newScreen;
|
||||
|
||||
newScreen.ModePushed += screenAdded;
|
||||
newScreen.Exited += screenRemoved;
|
||||
}
|
||||
|
||||
private void screenRemoved(Screen newScreen)
|
||||
{
|
||||
currentScreen = (OsuScreen)newScreen;
|
||||
|
||||
if (newScreen == null)
|
||||
Exit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user