mirror of
https://github.com/ppy/osu
synced 2024-12-12 18:07:52 +00:00
Add null checks to screen context insertion
This commit is contained in:
parent
2ddef0e46c
commit
b794deb5c5
@ -14,6 +14,7 @@ using osu.Framework.Audio;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
using osu.Framework.Extensions.TypeExtensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
@ -1203,8 +1204,8 @@ namespace osu.Game
|
||||
{
|
||||
scope.Contexts[@"screen stack"] = new
|
||||
{
|
||||
Current = newScreen.GetType().Name,
|
||||
Previous = current.GetType().Name,
|
||||
Current = newScreen?.GetType().ReadableName(),
|
||||
Previous = current?.GetType().ReadableName(),
|
||||
};
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user