mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Enable C# 14, fix a nullability error
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user