mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 21:13:01 +08:00
Fix fields being null.
This commit is contained in:
parent
e06c917c95
commit
473441dfd4
@ -25,7 +25,8 @@ namespace osu.Game.Graphics.Containers
|
||||
{
|
||||
if (value == expandableHeader) return;
|
||||
|
||||
Remove(expandableHeader);
|
||||
if (expandableHeader != null)
|
||||
Remove(expandableHeader);
|
||||
expandableHeader = value;
|
||||
expandableHeader.Depth = float.MinValue;
|
||||
Add(expandableHeader);
|
||||
@ -40,7 +41,8 @@ namespace osu.Game.Graphics.Containers
|
||||
{
|
||||
if (value == fixedHeader) return;
|
||||
|
||||
Remove(fixedHeader);
|
||||
if (fixedHeader != null)
|
||||
Remove(fixedHeader);
|
||||
fixedHeader = value;
|
||||
fixedHeader.Depth = float.MinValue / 2;
|
||||
Add(fixedHeader);
|
||||
|
Loading…
Reference in New Issue
Block a user