diff --git a/NewHorizons/External/Configs/PlanetConfig.cs b/NewHorizons/External/Configs/PlanetConfig.cs index 596ca54f..c4965f6a 100644 --- a/NewHorizons/External/Configs/PlanetConfig.cs +++ b/NewHorizons/External/Configs/PlanetConfig.cs @@ -669,14 +669,12 @@ namespace NewHorizons.External.Configs { if (!string.IsNullOrEmpty(volume.gameOverText)) { - if (volume.gameOver == null) - { - volume.gameOver = new(); - } + volume.gameOver ??= new(); volume.gameOver.text = volume.gameOverText; } if (volume.creditsType != null) { + volume.gameOver ??= new(); volume.gameOver.creditsType = (SerializableEnums.NHCreditsType)volume.creditsType; } }