mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: 2019 support
This commit is contained in:
parent
8f480ad963
commit
5509bb73bb
@ -260,7 +260,7 @@ public static HashSet<T> ReadHashSet<T>(this NetworkReader reader)
|
|||||||
int length = reader.ReadInt();
|
int length = reader.ReadInt();
|
||||||
if (length < 0)
|
if (length < 0)
|
||||||
return null;
|
return null;
|
||||||
HashSet<T> result = new HashSet<T>(length);
|
HashSet<T> result = new HashSet<T>();
|
||||||
for (int i = 0; i < length; i++)
|
for (int i = 0; i < length; i++)
|
||||||
{
|
{
|
||||||
result.Add(reader.Read<T>());
|
result.Add(reader.Read<T>());
|
||||||
|
Loading…
Reference in New Issue
Block a user