mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Reverted InvalidDataException because it breaks Unity projects that use .net subset.
This commit is contained in:
parent
8dd20b103c
commit
acc34e5fb3
@ -61,7 +61,7 @@ public UInt32 ReadPackedUInt32()
|
||||
UInt64 value = ReadPackedUInt64();
|
||||
if (value > UInt32.MaxValue)
|
||||
{
|
||||
throw new InvalidDataException("ReadPackedUInt32() failure, value too large");
|
||||
throw new IndexOutOfRangeException("ReadPackedUInt32() failure, value too large");
|
||||
}
|
||||
return (UInt32)value;
|
||||
}
|
||||
@ -122,7 +122,7 @@ public UInt64 ReadPackedUInt64()
|
||||
return a1 + (((UInt64)a2) << 8) + (((UInt64)a3) << 16) + (((UInt64)a4) << 24) + (((UInt64)a5) << 32) + (((UInt64)a6) << 40) + (((UInt64)a7) << 48) + (((UInt64)a8) << 56);
|
||||
}
|
||||
|
||||
throw new InvalidDataException("ReadPackedUInt64() failure: " + a0);
|
||||
throw new IndexOutOfRangeException("ReadPackedUInt64() failure: " + a0);
|
||||
}
|
||||
|
||||
public Vector2 ReadVector2()
|
||||
|
Loading…
Reference in New Issue
Block a user