From 1d7054265d1e5702cc1d2007eb6647925f2ca838 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Fri, 25 Oct 2024 19:58:49 +0200 Subject: [PATCH] avoid null string issues --- Source/Engine/Core/Config/LayersAndTagsSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Core/Config/LayersAndTagsSettings.cs b/Source/Engine/Core/Config/LayersAndTagsSettings.cs index 30f84f493..840332efb 100644 --- a/Source/Engine/Core/Config/LayersAndTagsSettings.cs +++ b/Source/Engine/Core/Config/LayersAndTagsSettings.cs @@ -35,7 +35,7 @@ namespace FlaxEditor.Content.Settings /// The layers names. /// [EditorOrder(10), EditorDisplay("Terrain Layers", EditorDisplayAttribute.InlineStyle), Collection(CanResize = false, Display = CollectionAttribute.DisplayType.Inline)] - public string[] TerrainLayers = new string[8]; + public string[] TerrainLayers = Enumerable.Repeat(string.Empty, 8).ToArray(); /// /// Gets the current terrain layer names. Returns "Layer" + index for layers without a name.