mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Fix breadcrumbs crash when last screen exits
This commit is contained in:
@ -30,7 +30,9 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
private void onExited(IScreen lastScreen, IScreen newScreen)
|
||||
{
|
||||
Current.Value = newScreen;
|
||||
if (newScreen != null)
|
||||
Current.Value = newScreen;
|
||||
|
||||
Items.ToList().SkipWhile(s => s != Current.Value).Skip(1).ForEach(RemoveItem);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user