fix: 2019 support

This commit is contained in:
vis2k 2022-12-09 21:36:26 +01:00
parent 8f480ad963
commit 5509bb73bb

View File

@ -260,7 +260,7 @@ public static HashSet<T> ReadHashSet<T>(this NetworkReader reader)
int length = reader.ReadInt();
if (length < 0)
return null;
HashSet<T> result = new HashSet<T>(length);
HashSet<T> result = new HashSet<T>();
for (int i = 0; i < length; i++)
{
result.Add(reader.Read<T>());