1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Use null check instead of assert in Hide() due to public exposure

This commit is contained in:
Dean Herbert 2021-09-29 18:58:43 +09:00
parent c5b7e97bd9
commit 4fd19cbb0d

View File

@ -66,10 +66,8 @@ namespace osu.Game.Skinning.Editor
public override void Hide()
{
Debug.Assert(skinEditor != null);
// base call intentionally omitted.
skinEditor.Hide();
skinEditor?.Hide();
}
public override void Show()