mirror of
https://github.com/ppy/osu.git
synced 2026-05-19 04:32:11 +08:00
Add back more correct null checks
This commit is contained in:
@@ -24,7 +24,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public LocalisableString Text
|
||||
{
|
||||
get => SpriteText.Text;
|
||||
get => SpriteText?.Text ?? default;
|
||||
set
|
||||
{
|
||||
if (SpriteText != null)
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
public LocalisableString Text
|
||||
{
|
||||
get => SpriteText.Text;
|
||||
get => SpriteText?.Text ?? default;
|
||||
set
|
||||
{
|
||||
if (SpriteText != null)
|
||||
|
||||
Reference in New Issue
Block a user