mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Fix nullref when exiting the last screen.
This commit is contained in:
parent
c9cf0e6e8f
commit
b9d99b5f40
@ -27,6 +27,8 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
private void screenChanged(Screen newScreen)
|
||||
{
|
||||
if (newScreen == null) return;
|
||||
|
||||
if (last != null)
|
||||
{
|
||||
last.Exited -= screenChanged;
|
||||
|
Loading…
Reference in New Issue
Block a user