From 9d45357ca9fce4e9bf63ef1ad50985e8fb639cb8 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Thu, 4 Dec 2025 17:49:46 +0100 Subject: [PATCH] Enable C# 14, fix a nullability error --- MSBuild/Robust.Engine.props | 2 +- Robust.Shared/GameObjects/EntityManager.Components.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MSBuild/Robust.Engine.props b/MSBuild/Robust.Engine.props index ebfc844ea..e8e9a0210 100644 --- a/MSBuild/Robust.Engine.props +++ b/MSBuild/Robust.Engine.props @@ -2,7 +2,7 @@ net10.0 - 13 + 14 enable nullable diff --git a/Robust.Shared/GameObjects/EntityManager.Components.cs b/Robust.Shared/GameObjects/EntityManager.Components.cs index 3d7323717..488a806c4 100644 --- a/Robust.Shared/GameObjects/EntityManager.Components.cs +++ b/Robust.Shared/GameObjects/EntityManager.Components.cs @@ -1224,7 +1224,7 @@ namespace Robust.Shared.GameObjects var set = _entCompIndex[uid]; if (set.Count > comps.Length) { - comps = new IComponent[set.Count]; + comps = new IComponent?[set.Count]; } var i = 0;