mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 23:07:26 +08:00
Merge pull request #18586 from peppy/skin-editor-null-ref-on-game-exit
Fix potential null reference in skin editor if target screen is null (during exit)
This commit is contained in:
commit
45d82d287f
@ -127,6 +127,9 @@ namespace osu.Game.Skinning.Editor
|
||||
|
||||
private void setTarget(OsuScreen target)
|
||||
{
|
||||
if (target == null)
|
||||
return;
|
||||
|
||||
Debug.Assert(skinEditor != null);
|
||||
|
||||
if (!target.IsLoaded)
|
||||
|
Loading…
Reference in New Issue
Block a user