mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 03:39:53 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user