Fix nullref when exiting the last screen.

This commit is contained in:
DrabWeb
2018-05-15 19:42:50 -03:00
parent c9cf0e6e8f
commit b9d99b5f40

View File

@ -27,6 +27,8 @@ namespace osu.Game.Graphics.UserInterface
private void screenChanged(Screen newScreen)
{
if (newScreen == null) return;
if (last != null)
{
last.Exited -= screenChanged;