Enable C# 14, fix a nullability error

This commit is contained in:
PJB3005
2025-12-04 17:49:46 +01:00
parent b0636c351c
commit 9d45357ca9
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<!-- Engine-specific properties. Content should not use this file. -->
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>13</LangVersion>
<LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
</PropertyGroup>

View File

@@ -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;